ionic cordova build ios fails - Error code 65
See original GitHub issueI tried building my app in iOS for the first time after having added cordova-plugin-firebase-analytics, and I am getting the following error:
[ERROR] Cordova encountered an error.
You may get more insight by running the Cordova command above directly.
[ERROR] An error occurred while running cordova build ios --release (exit code 1):
(truncated) ...
e.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c
-arch i386 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99
-fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/nafas/Library/Developer/Xcode/DerivedData/ModuleCache
-fmodules-prune-interval=86400 -fmodules-prune-after=345600
-fbuild-session-file=/Users/nafas/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation
-fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -Os -Wno-missing-field-initializers
-Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match
-Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter
-Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow
-Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion
-Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match
-Wundeclared-selector -Wno-deprecated-implementations -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.3.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g
-fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -fobjc-abi-version=2 -fobjc-legacy-dispatch
-iquote
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-generated-files.hmap
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-own-target-headers.hmap
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-all-target-headers.hmap
-iquote
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Updoc-project-headers.hmap
-I/Users/nafas/updoc/app/platforms/ios/build/emulator/include
-I/Users/nafas/updoc/app/platforms/ios/build/emulator/usr/local/lib/include
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/UninstalledProducts/include
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/UninstalledProducts/iphonesimulator/include
-I/Users/nafas/updoc/app/platforms/ios/build/emulator
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/DerivedSources/i386
-I/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/DerivedSources
-F/Users/nafas/updoc/app/platforms/ios/build/emulator -include
/Users/nafas/updoc/app/platforms/ios/build/sharedpch/Updoc-Prefix-hdaupibbgcnigebntimpqhbbwlsk/Updoc-Prefix.pch
-MMD -MT dependencies -MF
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.d
--serialize-diagnostics
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.dia
-c /Users/nafas/updoc/app/platforms/ios/Updoc/Plugins/cordova-plugin-inappbrowser/CDVInAppBrowser.m -o
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/CDVInAppBrowser.o
** BUILD FAILED **
The following build commands failed:
CompileC
/Users/nafas/Library/Developer/Xcode/DerivedData/Updoc-fklblfhvmnlqgpfrqmiiumwouyfz/Build/Intermediates/Updoc.build/Release-iphonesimulator/Updoc.build/Objects-normal/i386/FirebaseAnalyticsPlugin.o
Updoc/Plugins/cordova-plugin-firebase-analytics/FirebaseAnalyticsPlugin.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/nafas/updoc/app/platforms/ios/cordova/build-release.xcconfig,-workspace,Updoc.xcworkspace,-scheme,Updoc,-configuration,Release,-sdk,iphonesimulator,-destination,platform=iOS
Simulator,name=iPhone
SE,build,CONFIGURATION_BUILD_DIR=/Users/nafas/updoc/app/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/nafas/updoc/app/platforms/ios/build/sharedpch
Issue Analytics
- State:
- Created 6 years ago
- Reactions:17
- Comments:25
Top Results From Across the Web
cordova run with ios error .. Error code 65 for command
Future visitors: Archive failed means there is a signature related problem i.e. no provisioning profile. Open Xcode and select a team and Xcode ......
Read more >xcodebuild: command failed with exit code 65 #966 - GitHub
For some background context, error 65 from xcodebuild is a generic error that simply describes that xcodebuild couldn't do a build, which of ......
Read more >Error: xcodebuild: Command failed with exit code 65
If you do a quick little google on “Xcode exit code 65”, you'll find that this is a common issue. It means you...
Read more >Cordova build error CompileC code 65 SOLVED!
It appears to be a compilation issue of some kind. It happened with one of my Cordova projects after I updated it to...
Read more >[cordova] xcodebuild: Command failed with exit code 65
IF you are having this error “[cordova] xcodebuild: Command failed with exit code 65” when running iOS app on simulator or trying to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@pravs2011 same problem sample log :
To resolve this issue, I follow the first steps of this: https://github.com/firebase/quickstart-cpp/blob/master/analytics/testapp/readme.md#ios
I hope it will works for u.