I created an account with Telerik, signed a certificate with Apple Dev Centre and got a mobile provisioning. I used Appbuilder to import the certificate and the provision to my laptop. But I still cannot deploy my app on iOS using
tns deploy ios
The warning says:
IMPORTANT: Before building for iOS device, verify that you have configured a valid pair of certificate and provisioning profile on your OS X system.
But when I do "appbuilder provision" and "appbuilder certificate", the commands show me they have been successfully imported. I also tried:
appbuilder deploy ios --provision '<name>' --certificate '<title>'
It says no project found at or above path and neither was a --path specified. But I am in the project folder. :/
For me, I used:
$ tns deploy ios --device <device-udid>
Now, beforehand I...
Registered my device with Apple
Created an explicit Bundle ID with Apple that matches the one that Native Script places in the package.json. This is what mine looked like.
"nativescript": {
"id": "org.nativescript.<app-name>",
"tns-ios": {
"version": "3.0.1"
},
"tns-android": {
"version": "3.0.1"
}
}
I then made provisioning profile with Apple https://developer.apple.com/account/ios/profile/ that then included the device and Bundle ID that I just made.
Then in the file /app/App_Resources/iOS/build.xcconfig
ie.
DEVELOPMENT_TEAM = <Apple-dev-team-name>
PROVISIONING_PROFILE = <provision-profile-id>
The provison profile is found in User/Library/MobileDevice/Provisioning\ Profiles/
If there is more than one, sort be creation date and grab the first one
Then ctrl-click and choose "Rename" copy the ID and paste it into the build.xcconfig file from earlier.
$ tns device ios --available-devices
i.e.
│#│Device Name│Platform│Device Identifier│ Type │ Status │
│1│ iPhone │ iOS │ <device-udid> │Device│Connected│
$ tns deploy ios --device <device-name>
P.S. : Let me know if this works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With