Command xcodebuild failed with exit code 65.
Dear friend, we, the rest of the NativeScript community really appreciate your feedback! While we are doing all we can to take care of every issue, sometimes we get overwhelmed. Because of that, we will consider issues that are not constructive or problems that cannot be reproduced "dead". Additionally, we will treat feature requests or bug reports with unanswered questions regarding the behavior/reproduction for more than 20 days "dead". All "dead" issues will get closed.
Please, provide the details below:
Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?
Yes
Tell us about the problem
Please, ensure your title is less than 63 characters long and starts with a capital letter. Command xcodebuild failed with exit code 65.
Which platform(s) does your issue occur on?
iOS/Android/Both iOS
Please provide the following version numbers that your issue occurs with:
- CLI: (run
tns --versionto fetch it) - Cross-platform modules: (check the 'version' attribute in the
node_modules/tns-core-modules/package.jsonfile in your project) - Runtime(s): (look for the
"tns-android"and"tns-ios"properties in thepackage.jsonfile of your project) - Plugin(s): (look for the version number in the
package.jsonfile of your project) tns-version 4.0.0 package.json
{
"description": "App Desc",
"license": "SEE LICENSE IN
Please tell us how to recreate the issue in as much detail as possible.
tns run ios --provision
ends with ** BUILD FAILED **
Unable to apply changes on device:
Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.
Consider using the playground to provide the code you have issues with. Code is working Okay with the Emulator , Issue arises when i try to deploy on the device, tried sidekick too but same error there.
Hi @ahtishamashraf,
It seems like your device is not included in your provision. Can you execute the followings:
- Connect your non working device
- Execute
tns run ios --provisioncommand and send us the output.
I have managed to run it on my device using the Same Provisioning Profile using Nativescript Sidekick
@ahtishamashraf,
Sorry for the late reply. It's strange the Sidekick works with the same provision but {N} CLI fails. Actually Sidekick calls {N} CLI logic to build the application. I'll close this issue. Feel free to write here or open an another in case you have some problems.
tns build ios --clean solved the issue for me
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.
(1 failure)
Command xcodebuild failed with exit code 65
Error: Command xcodebuild failed with exit code 65
at Errors.failWithOptions (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:147:28)
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:120:21)
at XcodebuildCommandService.
I can't solve this issue
tns build ios --clean --log trace :(
(1 failure)
Command xcodebuild failed with exit code 65
Error: Command xcodebuild failed with exit code 65
at Errors.failWithOptions (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:147:28)
at Errors.fail (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:120:21)
at XcodebuildCommandService.
** BUILD FAILED **
Command xcodebuild failed with exit code 65
Error: Command xcodebuild failed with exit code 65
at Errors.failWithOptions (/Users/macbook/Development/point/node_modules/nativescript/lib/common/errors.js:147:28)
at Errors.fail (/Users/macbook/Development/point/node_modules/nativescript/lib/common/errors.js:120:21)
at XcodebuildCommandService.
** BUILD FAILED **
Command xcodebuild failed with exit code 65 Error: Command xcodebuild failed with exit code 65 at Errors.failWithOptions (/Users/macbook/Development/point/node_modules/nativescript/lib/common/errors.js:147:28) at Errors.fail (/Users/macbook/Development/point/node_modules/nativescript/lib/common/errors.js:120:21) at XcodebuildCommandService. (/Users/macbook/Development/point/node_modules/nativescript/lib/services/ios/xcodebuild-command-service.js:28:30) at Generator.throw () at rejected (/Users/macbook/Development/point/node_modules/nativescript/lib/services/ios/xcodebuild-command-service.js:5:65) at processTicksAndRejections (internal/process/task_queues.js:97:5) npm ERR! code ELIFECYCLE
I get the same error. Do you guys have any solution? "Applications" folder is already created.
Hi @vidhyasgr , that is a pretty generic error, the interesing part of the output is probably above the ** BUILD FAILED **
Also, some information about the project would be handy: Versions of XCode and NativeScript, libraries, etc.
HI, all! Please read https://nativescript.org/blog/nativescript-6-7-xcode-compatibility/ and then after you verify XCode and NS CLI versions, let us know if you are still having issues and what versions of BOTH you are using?
HI !
Here is what helped me
- XCODE 13.3.1
- NativeScript 8.0.2 cli
- Platform IOS "6.5.2"
STEP 1 (build.xcconfig)
// xcode 13
EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64=arm64 arm64e armv7 armv7s armv6 armv8
EXCLUDED_ARCHS=$(inherited)
$(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT))
IPHONEOS_DEPLOYMENT_TARGET = 12.0
STEP 2 (Podfile)
pod 'CocoaAsyncSocket'
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64'
config.build_settings['CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER'] ='NO'
config.build_settings['ONLY_ACTIVE_ARCH'] = 'YES'
end
end
end
IPHONEOS_DEPLOYMENT_TARGET = 12.0
give me a star thanks