ngCordova demo application build failed - ios

I am trying to build the demo app of ngCordova.
cordova platform add ios
cordova run ios
But build failed with the following error messages.
The following build commands failed:
CompileC build/ngCordova\
Demo.build/Debug-iphonesimulator/ngCordova\ Demo.build/Objects-normal/i386/applicationPreferences.o ngCordova\ Demo/Plugins/com.simonmacdonald.prefs/applicationPreferences.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler (1 failure)
ERROR running one or more of the platforms: Error code 65 for
command: xcodebuild with args:
-xcconfig,/Users/westhigh/github/demo/platforms/ios/cordova/build-debug.xcconfig,-project,ngCordova Demo.xcodeproj,ARCHS=i386,-target,ngCordova Demo,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/westhigh/github/demo/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/westhigh/github/demo/platforms/ios/build/sharedpch

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

Ionic 3 iOS release build failing

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.

Error code 65 when building IOS app on intel xdk

I have created my game with Construct 2 and exported it to cordova , after that I imported it to intel xdk and I have started work to export to ios , after building I get this error :
The following build commands failed:
CompileC build/Robo\ Copter.build/Release-iphoneos/Robo\ Copter.build/Objects-normal/armv7/AdMobPlugin.o Robo\ Copter/Plugins/cordova-plugin-ad-admob/AdMobPlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: Error code 65 for command: xcodebuild with args: - xcconfig,.../builds/build.2016-11-28.09-05-02.D5Cxki.tmp/cordova_project/platforms/ios/cordova/build-release.xcconfig,-project,Robo Copter.xcodeproj,ARCHS=armv7 arm64,-target,Robo Copter,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=.../builds/build.2016-11-28.09-05-02.D5Cxki.tmp/cordova_project/platforms/ios/build/device,SHARED_PRECOMPS_DIR=.../builds/build.2016-11-28.09-05-02.D5Cxki.tmp/cordova_project/platforms/ios/build/sharedpch

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

cordova iosRTC complie error

I am using cordova iosRTC plugin for webRTC support in ios.I am following this link to use iosRTC plugin.But When i am executing "cordova build ios" command its giving build failed with following error
The following build commands failed:
CompileSwift normal i386 /Users/laxman/Desktop/rahul/curetest/platforms/ios/curespring/Plugins/cordova-plugin-iosrtc/iosrtcPlugin.swift
CompileSwift normal i386 /Users/laxman/Desktop/rahul/curetest/platforms/ios/curespring/Plugins/cordova-plugin-iosrtc/PluginRTCTypes.swift
CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler
(3 failures)
Error code 65 for command:
xcodebuild with args: -xcconfig,/Users/laxman/Desktop/rahul/curetest/platforms/ios/cordova/build-debug.xcconfig,-project,curespring.xcodeproj,ARCHS=i386,-target,curespring,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/laxman/Desktop/rahul/curetest/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/laxman/Desktop/rahul/curetest/platforms/ios/build/sharedpch
ERROR building one of the platforms: Error: /Users/laxman/Desktop/rahul/curetest/platforms/ios/cordova/build: Command failed with exit code 2
You may not have the required environment or OS to build this project
Error: /Users/laxman/Desktop/rahul/curetest/platforms/ios/cordova/build: Command failed with exit code 2
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
at ChildProcess.emit (events.js:110:17)
at maybeClose (child_process.js:1015:16)
at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
But when i excute ".xcodeproj" file using xcode 6.3.1 its not giving build error and program is running fine in "i5s" device but still its not supporting webRTC . please suggest me what to do.

Resources