question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ionic cordova build ios fails - Error code 65

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Reactions:17
  • Comments:25

github_iconTop GitHub Comments

12reactions
bhumin3icommented, Mar 16, 2018

@pravs2011 same problem sample log :

Ld build/emulator/RTI.app/RTI normal x86_64
    cd /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios
    export IPHONEOS_DEPLOYMENT_TARGET=9.0
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/bhumin/Desktop/gitREPO/rtidev/node_modules/.bin:/Users/bhumin/Library/Android/sdk//tools:/Users/bhumin/Library/Android/sdk//platform-tools:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.2.sdk -L/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/Protobuf -L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/nanopb -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseCore/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/Pods/FirebaseMessaging/Frameworks -FRTI/Plugins/com.googlemaps.ios -FRTI/Plugins/cordova-plugin-ms-adal -filelist /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -ObjC -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -ObjC -lGoogleToolboxForMac -lProtobuf -lc++ -lnanopb -lsqlite3 -lz -framework AddressBook -framework FirebaseAnalytics -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMessaging -framework FirebaseNanoPB -framework StoreKit -framework SystemConfiguration -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/RTI.app.xcent /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator/libCordova.a -framework CoreLocation -framework CoreTelephony -framework CoreImage -lz -framework QuartzCore -framework SystemConfiguration -weak_framework WebKit -framework ADAL -framework UserNotifications -liconv -framework AVFoundation -framework CoreVideo -framework AudioToolbox -framework Accelerate -framework CoreData -framework CoreText -framework GLKit -framework ImageIO -lc++ -framework OpenGLES -framework UIKit -framework GoogleMapsBase -framework GoogleMaps -framework GoogleMapsCore -Xlinker -dependency_info -Xlinker /Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Intermediates.noindex/RTI.build/Debug-iphonesimulator/RTI.build/Objects-normal/x86_64/RTI_dependency_info.dat -o /Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator/RTI.app/RTI
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/GoogleToolboxForMac'
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/Protobuf'
ld: warning: directory not found for option '-L/Users/bhumin/Library/Developer/Xcode/DerivedData/RTI-aqtvytpqvcxbkaepcfkfyqitbgqv/Build/Products/Debug-iphonesimulator/nanopb'
ld: library not found for -lGoogleToolboxForMac
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **


The following build commands failed:
	Ld build/emulator/RTI.app/RTI normal x86_64
(1 failure)
(node:72758) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error code 65 for command: xcodebuild with args: -xcconfig,/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/cordova/build-debug.xcconfig,-workspace,RTI.xcworkspace,-scheme,RTI,-configuration,Debug,-sdk,iphonesimulator,-destination,platform=iOS Simulator,name=iPhone X,build,CONFIGURATION_BUILD_DIR=/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/emulator,SHARED_PRECOMPS_DIR=/Users/bhumin/Desktop/gitREPO/rtidev/platforms/ios/build/sharedpch
(node:72758) [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.
7reactions
florent1933commented, May 21, 2018

To resolve this issue, I follow the first steps of this: https://github.com/firebase/quickstart-cpp/blob/master/analytics/testapp/readme.md#ios

cd platform/ios
pod install

I hope it will works for u.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found