Skip to content

Can't run in physical device iOS. Command xcodebuild failed with exit code 65 #1191

Open
@young1872

Description

@young1872

Hello, I'm starting to do the tutorial of nativescript with angular, I tested on the ios emulator and everything is OK, but when I want to run in a physical device, tns run ios, appears this errors. I can run on my device xcode examples without problems. Please, I need your help, thanks.

  • Which platform(s) does your issue occur on?. iOS
  • CLI: 3.4.1
  • Device: iPhone 5S iOS 11.2
  • Xcode Version Version 9.2 (9C40b)
HookDevs-Mac-mini:HelloWorld hook$ tns run ios --teamId T9Z2G92JD5
Searching for devices...
Executing before-liveSync hook from /Users/hook/Desktop/HelloWorld/hooks/before-liveSync/nativescript-angular-sync.js
Skipping prepare.
Building project...
Xcode build...
2018-02-06 21:49:31.513 xcodebuild[667:10360]  DVTPortal: Service '<DVTPortalAddAppIDService: 0x7ff639d963a0; action='addAppId'>' encountered an unexpected result code from the portal ('9401')
2018-02-06 21:49:31.513 xcodebuild[667:10360]  DVTPortal: Error:
Error Domain=DVTPortalServiceErrorDomain Code=9401 "An App ID with Identifier 'org.nativescript.HelloWorld' is not available. Please enter a different string." UserInfo={payload=<CFBasicHash 0x7ff6387dc0e0 [0x7fff87827980]>{type = mutable dict, count = 10,
entries =>
	0 : <CFString 0x7ff6387a95d0 [0x7fff87827980]>{contents = "requestId"} = <CFString 0x7ff6386ca080 [0x7fff87827980]>{contents = "129CD445-9DA9-41B8-8CE1-4480999E4DBA"}
	1 : responseId = <CFString 0x7ff639ceeb50 [0x7fff87827980]>{contents = "9c4843f4-26e8-4c70-8049-f9cc33d4d75d"}
	2 : <CFString 0x7fff8774ab58 [0x7fff87827980]>{contents = "protocolVersion"} = QH65B2
	3 : <CFString 0x7ff639ceea30 [0x7fff87827980]>{contents = "requestUrl"} = <CFString 0x7ff6384a8240 [0x7fff87827980]>{contents = "https://developerservices2.apple.com/services/QH65B2/ios/addAppId.action"}
	6 : <CFString 0x7ff63889e6d0 [0x7fff87827980]>{contents = "userLocale"} = en_US
	8 : resultCode = <CFNumber 0x24b937 [0x7fff87827980]>{value = +9401, type = kCFNumberSInt64Type}
	9 : userString = <CFString 0x7ff638c76480 [0x7fff87827980]>{contents = "An App ID with Identifier 'org.nativescript.HelloWorld' is not available. Please enter a different string."}
	10 : <CFString 0x7ff635efa8a0 [0x7fff87827980]>{contents = "resultString"} = <CFString 0x7ff638c76480 [0x7fff87827980]>{contents = "An App ID with Identifier 'org.nativescript.HelloWorld' is not available. Please enter a different string."}
	11 : httpCode = <CFNumber 0xc837 [0x7fff87827980]>{value = +200, type = kCFNumberSInt64Type}
	12 : <CFString 0x7ff63872e7f0 [0x7fff87827980]>{contents = "creationTimestamp"} = <CFString 0x7ff638c76690 [0x7fff87827980]>{contents = "2018-02-07T00:49:30Z"}
}
, NSLocalizedDescription=An App ID with Identifier 'org.nativescript.HelloWorld' is not available. Please enter a different string.}`

`
=== BUILD TARGET HelloWorld OF PROJECT HelloWorld WITH CONFIGURATION Debug ===
Code Signing Error: Failed to create provisioning profile. The app ID "org.nativescript.HelloWorld" cannot be registered to your development team. Change your bundle identifier to a unique string to try again.
`

`
Code Signing Error: No profiles for 'org.nativescript.HelloWorld' were found:  Xcode couldn't find any iOS App Development provisioning profiles matching 'org.nativescript.HelloWorld'.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'`

`
** BUILD FAILED **
Unable to apply changes on device: a4c19ba4d4f600136749b3f1d0144e87xxxxxxxx. Error is: Command xcodebuild failed with exit code 65.`

Executing after-watch hook from /Users/hook/Desktop/HelloWorld/hooks/after-watch/nativescript-dev-typescript.js`

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions