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
Related
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.
Receiving the following error when doing a
tns run -v ios
(mac is running High Sierra and xcode is current, certificates are in place, etc). any assistance would be greatly appreciated. Here the error:
`Building project...
Xcode build...
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
ld: framework not found FileProvider for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ld: framework not found FileProvider for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
error: the following command failed with exit code 1 but produced no further output
Ld build/HelloWorld.build/Debug-iphonesimulator/HelloWorld.build/Objects-normal/x86_64/HelloWorld normal x86_64
** BUILD FAILED **
Unable to apply changes on device: B71912B9-B650-4EBF-AB43-3383136CB95F. Error is: Command xcodebuild failed with exit code 65.
Executing after-watch hook from /Users/XXX/temp/NATIVE/HelloWorld/hooks/after-watch/nativescript-dev-webpack.js`
run tns build ios --clean --log trace first ,if the log trace is related to some plugin, use whose latest version in the package.json file , run npm install, than run tns build ios --clean --log trace again.
if it not work, run tns prepare ios --release and open {app-name}/platforms/ios/{app-name}.xcworkspace file with xcode , try run it, xcode will tell you where is the problem.
I'm trying to run the ionic command ionic cordova emulate ios and fails. I tried to run a clean cordova helloworld project and it runs without any problems. Below, I write to you listing the terminal with the error.
/Users/frol/ionic1/platforms/ios/build/emulator/libCordova.a(CDVLogger.o)
ld: 2 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld build/emulator/Live\ Hockey.app/Live\ Hockey normal x86_64
(1 failure)
(node:2641) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/frol/ionic1/platforms/ios/cordova/build-debug.xcconfig,-workspace,Live Hockey.xcworkspace,-scheme,Live Hockey,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/frol/ionic1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/frol/ionic1/platforms/ios/build/sharedpch
(node:2641) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My versions
ionic - 3.19.1
cordova - 8.0.0
node - 8.9.4
When you deploy strictly followed the instructions on the website ionic and installed everything (XCode, command line). Help me
I think this is because of the console plugin the new cordova-ios versions.
Try after removing the cordova console plugin.
do
cordova plugin rm cordova-plugin-console
and run again.
If that does not help, try the following:
cordova platform rm ios
cordova platform add ios#4.4
Hope this helps.
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
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