I have created a project with nativescript-vue that works fine on emulator and also I can install it to my iphone with tns run ios
but when I try to build and IPA and send it to a friend with diawi.com the app installs, the icon and splash screen are fine but then it crashes, I could see this in crash reports:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Now I want to use apple testflight for it, I've bought an apple developer teamid for 80 Euros. And I've specified my teamid in the build.xcconfig file:
// You can add custom settings here
// for example you can uncomment the following line to force distribution code signing
CODE_SIGN_IDENTITY = iPhone Distribution
// To build for device with Xcode 8 you need to specify your development team. More info: https://developer.apple.com/library/prerelease/content/releasenotes/DeveloperTools/RN-Xcode/Introduction.html
DEVELOPMENT_TEAM = TSxxxxxxxx;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage;
And also the type of this teamid is distribution, I also have another one with the type developer which doesn't work either. What happens is that when I open the project in xcode with open platform/ios/app.xcodeproj
I get this error:
Myapp has conflicting provisioning settings. Myapp is automatically signed for development, but a conflicting code signing identity iPhone Distribution has been manually specified. Set the code signing identity value to iPhone Developer in the build settings editor, or switch to manual signing in the project editor. (in target 'Myapp')
Please note that I've already tried with both my TeamIds in my keychain(one is for distribution one is for developer) and each time I changed both CODE_SIGN_IDENTITY
and DEVELOPMENT_TEAM
then I did
yes | rm -r platforms
tns platform add ios
I even tried commenting both lines out(hoping to let things go automatic) to no avail.
How can I fix it? Please tell me exactly what I should do step by step, like, don't tell me open project editor, build editor etc. I'd much prefer a command line solution, I'm not so good with these GUI tools :-"