Error code 65 for command: xcodebuild How solve it? - ios

I run ionic cordova build ios and the response ever is a error
Please help me
** BUILD FAILED **
The following build commands failed:
CompileXIB MyApp/Classes/MainViewController.xib
(1 failure)
CordovaError: Promise rejected with non-error: 'Error code 65 for command: xcodebuild with args: -xcconfig,/Users/linuxplus/Public/Teste/platforms/ios/cordova/build-debug.xcconfig,-workspace,MyApp.xcworkspace,-scheme,MyApp,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone SE,build,CONFIGURATION_BUILD_DIR=/Users/linuxplus/Public/Teste/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/linuxplus/Public/Teste/platforms/ios/build/sharedpch'
at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
at process._tickCallback (internal/process/next_tick.js:68:7)
[ERROR] An error occurred while running subprocess cordova.
cordova build ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.

This must be appearing in Xcode 10.x, I believe. In that case, it is because the build system has been changed in Xcode 10.x.
Try using below command:
Build: ionic cordova build ios -- --buildFlag="-UseModernBuildSystem=0"
Run: ionic cordova run ios -- --buildFlag="-UseModernBuildSystem=0" --livereload
Reference: https://github.com/apache/cordova-ios/issues/407#issue-360392411
Hope this helps.

Try
ionic cordova build ios --prod --verbose -- --buildFlag="-UseModernBuildSystem=0"

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

how to fix libCordova.a(CDVLogger.o) ld: 2 duplicate symbols for architecture x86_64 on mac os ionic 3 app?

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.

Cordova ios build fail "CompileAssetCatalog build"

Cordova version 6.1.1
Cordova ios platform version 6.1.1
I am unable to find any solution for the following error
The following build commands failed:
CompileAssetCatalog build/emulator/myapp1.app myapp1/Images.xcassets
(1 failure)
Error: Error code 65 for command: xcodebuild with args: -xcconfig,/Users/appdev/Desktop/All-Apps/myapp1/platforms/ios/cordova/build-debug.xcconfig,-project,myapp1.xcodeproj,ARCHS=i386,-target,myapp1,-configuration,Debug,-sdk,iphonesimulator,build,VALID_ARCHS=i386,CONFIGURATION_BUILD_DIR=/Users/appdev/Desktop/All-Apps/myapp1/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/appdev/Desktop/All-Apps/myapp1/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

ngCordova demo application build failed

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

Resources