Skip to content

tns publish ios fails with cocoapods #1790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
PanayotCankov opened this issue May 31, 2016 · 4 comments
Closed

tns publish ios fails with cocoapods #1790

PanayotCankov opened this issue May 31, 2016 · 4 comments

Comments

@PanayotCankov
Copy link
Contributor

Trying the tns publish command with the QSF fails with:

Code Sign error: Provisioning profile does not match bundle identifier: The provisioning
profile specified in your build settings ("OrgNativeScriptDistribution") has an AppID of
"org.nativescript.*" which does not match your bundle identifier
"org.cocoapods.IQKeyboardManager".

I don't think we should try to sign any of the cocoapod targets using the App's provisioning profile.

@PanayotCankov PanayotCankov self-assigned this May 31, 2016
@PanayotCankov PanayotCankov added this to the 2.1 (Under consideration) milestone May 31, 2016
@PanayotCankov
Copy link
Contributor Author

PanayotCankov commented Jun 1, 2016

The following can produce .xcarchive:

xcodebuild archive \
    -workspace nativescriptmarketplacedemo.xcworkspace \
    -scheme nativescriptmarketplacedemo \
    -archivePath nativescriptmarketplacedemo.xcarchive

And this can export a properly signed .ipa, ready for upload using Application Loader:

xcodebuild
    -exportArchive
    -archivePath nativescriptmarketplacedemo.xcarchive
    -exportPath nativescriptmarketplacedemo.ipa
    -exportOptionsPlist export.plist

In combination with the export.plist (this is pretty much the options you have when exporting from Xcode UI):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>teamID</key>
    <string>**********</string>
    <key>method</key>
    <string>app-store</string>
    <key>uploadBitcode</key>
    <false/>
    <key>uploadSymbols</key>
    <false/>
</dict>
</plist>

@PanayotCankov
Copy link
Contributor Author

The tns publish ios <itunesuser> <itunespass> will now create Xcode archive and export ipa successfully with pods.

@ghost
Copy link

ghost commented Nov 28, 2016

@PanayotCankov @enchev @rosen-vladimirov This is happening again for me in 2.4.0, can anyone else reproduce this issue?

tns publish ios seems to be building cocoapod targets (in my case IQKeyboardManager) instead of the NS scheme, so there are signing and bitcode errors when trying to archive/upload respectively.

@vincentpalita
Copy link

vincentpalita commented Feb 15, 2017

@vbresults : did you specify an "ipa" path in your build command? If yes, remove it and keep the default folder.
As specified in the code at line https://github.com/NativeScript/nativescript-cli/blob/master/lib/commands/appstore-upload.ts#L54 if you specify an ipa path it will not create an archive.
Be careful also to not include arguments about provisioningProfile & codeSigningIdentity.
It should be only in your build.xconfig file.
Hope it helps even if it's a reply 2 months later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants