ionic-framework: iOS Build failed Error code 65

Ionic version: (check one with “x”) (For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1) [ ] 2.x [x ] 3.x [ ] 4.x

I’m submitting a … (check one with “x”) [x ] bug report [ ] feature request

Current behavior: When i build my ios app i’m getting the following error: `** BUILD FAILED **

The following build commands failed: CompileC /Users/tdit0703/Library/Developer/Xcode/DerivedData/SC_Dahenfeld-gnijudycyxoemmgdlqxxbqotfqht/Build/Intermediates.noindex/SC\ Dahenfeld.build/Debug-iphonesimulator/SC\ Dahenfeld.build/Objects-normal/x86_64/MyMainViewController.o SC\ Dahenfeld/Plugins/com.telerik.plugins.wkwebview/MyMainViewController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure) Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/tdit0703/IdeaProjects/sc-dahenfeld/platforms/ios/cordova/build-debug.xcconfig,-workspace,SC Dahenfeld.xcworkspace,-scheme,SC Dahenfeld,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/tdit0703/IdeaProjects/sc-dahenfeld/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/tdit0703/IdeaProjects/sc-dahenfeld/platforms/ios/build/sharedpch

[ERROR] An error occurred while running cordova build ios (exit code 1).`

Also when i build it in XCode 9.1 it can not find the file ‘Cordova/CDVLocalStorage.h’.

Expected behavior: Build should be successful.

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

cli packages:

    @ionic/cli-utils  : 1.18.0
    ionic (Ionic CLI) : 3.18.0

global packages:

    cordova (Cordova CLI) : 7.1.0 

local packages:

    @ionic/app-scripts : 3.1.0
    Cordova Platforms  : android 6.3.0 ios 4.5.3
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.8.6 
    ios-sim           : 5.0.8 
    Node              : v7.0.0
    npm               : 2.15.12 
    OS                : macOS Sierra
    Xcode             : Xcode 9.1 Build version 9B55 

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 1
  • Comments: 18 (4 by maintainers)

Most upvoted comments

after long long search… have find a tempory fix solution but not shure if is the right way… Let me explain:

The bug coming from cordova-plugin-ionic-webview and to tempory fix build faild you have to update config.xml with the following config added:

...
    <preference name="webviewbounce" value="false" />
    <preference name="UIWebViewBounce" value="false" />
...

then remove all platform, delete plugins+platform+node_modules folder and run

$ npm install
$ ionic cordova platform add ios
$ ionic cordova prepare ios
$ ionic cordova build ios --prod

and you will have a ** BUILD SUCCEEDED **

Ok, now it works… what i did?

  • Remove all platforms
  • Remove all plugins
  • Remove node_modules…

… and installed it all again.