Ionic 3 iOS release build failing - ios

I am trying to build(release) my ionic 3 apps for iOS. I was able to do it earlier without any problem but all of a sudden I started to get below errors
/Users/akash/Desktop/sourcecode /platforms/ios/Xpym/Plugins/cordova-plugin-ionic-webview/CDVWKWebViewEngine.h:21:9: fatal error: 'Cordova/CDV.h' file not found
#import <Cordova/CDV.h>
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC /Users/akash/Library/Developer/Xcode/DerivedData/Xpym-bvfukasejehwgkcvbzmyfdzldbzg/Build/Intermediates.noindex/Xpym.build/Release-iphonesimulator/Xpym.build/Objects-normal/x86_64/IONAssetHandler.o
/Users/akash/Desktop/sourcecode\
/platforms/ios/Xpym/Plugins/cordova-plugin-ionic-webview/IONAssetHandler.m
normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure) xcodebuild: Command failed with exit code 65
I have tried removing node_modules folder and reinstalling them, reinstalling ios platform but I am now continuously getting this error.
But when I build it without --release, the build is successful.

Related

xcodebuild: Command failed with exit code 65 FacebookConnectPlugin.m

I've created an Ionic 4 app with Facebook login. It works great on Android but when I attempt to build on the iOS platform I get the following error:
x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1
failure) xcodebuild: Command failed with exit code 65 [ERROR] An error
occurred while running subprocess cordova.
I get that error with
sudo ionic cordova build ios -allowProvisioningUpdates
If I then open the app in Xcode and attempt to build I get the following error:
/Users/anonymous/Development/Mundo1.5/platforms/ios/Buddy
Pass/Plugins/cordova-plugin-facebook4/FacebookConnectPlugin.h:13:9:
'FBSDKCoreKit/FBSDKCoreKit.h' file not found

React Native Firebase build error

I've been struggling with getting my react native instance to run and i keep hitting this:
** BUILD FAILED **
The following build commands failed:
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/BannerComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/BannerComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/alexvallejo/Sites/myProj/ios/build/Build/Intermediates/Pods.build/Debug-iphonesimulator/RNFirebase.build/Objects-normal/x86_64/NativeExpressComponent.o /Users/alexvallejo/Sites/myProj/node_modules/react-native-firebase/ios/RNFirebase/admob/NativeExpressComponent.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
Installing build/Build/Products/Debug-iphonesimulator/myProj.app
An error was encountered processing the command (domain=MIInstallerErrorDomain, code=4):
Failed to chmod /Users/alexvallejo/Library/Developer/CoreSimulator/Devices/31C5C7FC-9DE4-4F95-A7F5-50296C8CC6CB/data/Library/Caches/com.apple.containermanagerd/Bundle/Application/0170A665-460A-4CDF-92B4-0FAC8FBE2224/myProj.app/myProj : No such file or directory
Launching org.reactjs.native.example.myProj
Any ideas on what's going on here? I dont have pod 'Firebase/AdMob' in my Podfile so i don't know why BannerComponent is trying to load.
Make sure you're building with the latest Xcode version. Had the same issue with outdated Xcode.

Ionic fails to build for IOS - Error code 65 for command

I have an Ionic App that I am trying to build for IOS (for the first time). I keep getting this error:
The following build commands failed:
CompileC build/IHS_App.build/Debug-iphonesimulator/IHS_App.build/Objects-normal/i386/IonicKeyboard.o IHS_App/Plugins/com.ionic.keyboard/IonicKeyboard.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/dismac/Desktop/IHS/Software/trunk/app/platforms/ios/cordova/build-debug.xcconfig,-project,IHS_App.xcodeproj,ARCHS=i386,-target,IHS_App,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/dismac/Desktop/IHS/Software/trunk/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/dismac/Desktop/IHS/Software/trunk/app/platforms/ios/build/sharedpch
I have no idea where to start here? anyone?
Fixed it by removing the keyboard plugin:
cordova plugin rm com.ionic.keyboard
cordova plugin add ionic-plugin-keyboard
Don't know why it worked

unexpected phonegap build error

So everything was going nice, succesful build and testing on my device then phonegap gives me this error and my build fails. I tried uninstalling and reinstalling various versions, attempting to rebuild old projects building, updating and downgrading.. but nothing I've tried has worked. Any ideas?
Heres the error:
/Users/spencerpope/webslinger/platforms/ios/webslinger/Classes/AppDelegate.m:80:25: error:
property 'useSplashScreen' not found on object of type
'CDVViewController *'
self.viewController.useSplashScreen = YES;
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/webslinger.build/Debug-iphonesimulator/webslinger.build/Objects- normal/i386/main.o webslinger/main.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/webslinger.build/Debug-iphonesimulator/webslinger.build/Objects-normal/i386/AppDelegate.o webslinger/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
{ [Error: /Users/spencerpope/webslinger/platforms/ios/cordova/build: Command failed with exit code 65] code: 65 }
[error] /Users/spencerpope/webslinger/platforms/ios/cordova/build: Command failed with exit code 65

Creating an iPA using command line for a Phonegap project

I used the following instructions http://docs.phonegap.com/en/2.0.0/guide_command-line_index.md.html#Command-Line%20Usage for setting up the command line tools for iOS.
But when I try to build the project with $ /path/to/my_new_cordova_project/cordova/debug
I get this:
In file included from /Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.m:28:
/Users/jakob/Dropbox/Coding/phonegap/ios_project/ios_project/Classes/AppDelegate.h:30:9: fatal error: 'Cordova/CDVViewController.h' file not found
#import <Cordova/CDVViewController.h>
^
1 error generated.
** BUILD FAILED **
The following build commands failed:
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/MainViewController.o ios_project/Classes/MainViewController.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/ios_project.build/Debug-iphonesimulator/ios_project.build/Objects-normal/i386/AppDelegate.o ios_project/Classes/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
When I build the project with Xcode everything works fine but I´d prefer to use the command line tools.
I got:
Xcode 5.0
PhoneGap 2.9.1 and I have tried in 3.4.0
This error appears probably by using the workspace file. Trying with the xcode project directory should resolve the problem.

Resources