René's URL Explorer Experiment


Title: iOS Archive Export unexpected behavior when using AdHoc or AppStore provisioning · Issue #3020 · NativeScript/nativescript-cli · GitHub

Open Graph Title: iOS Archive Export unexpected behavior when using AdHoc or AppStore provisioning · Issue #3020 · NativeScript/nativescript-cli

X Title: iOS Archive Export unexpected behavior when using AdHoc or AppStore provisioning · Issue #3020 · NativeScript/nativescript-cli

Description: From Xcode 8.3+ the way IPA is built changed. The generation of the IPA is a two step process now: xcodebuild archive xcodebuild export Archive This makes an archive folder that has app, debug symbols, etc. It has all the artefacts neces...

Open Graph Description: From Xcode 8.3+ the way IPA is built changed. The generation of the IPA is a two step process now: xcodebuild archive xcodebuild export Archive This makes an archive folder that has app, debug symb...

X Description: From Xcode 8.3+ the way IPA is built changed. The generation of the IPA is a two step process now: xcodebuild archive xcodebuild export Archive This makes an archive folder that has app, debug symb...

Opengraph URL: https://github.com/NativeScript/nativescript-cli/issues/3020

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS Archive Export unexpected behavior when using AdHoc or AppStore provisioning","articleBody":"From Xcode 8.3+ the way IPA is built changed.\r\nThe generation of the IPA is a two step process now:\r\n 1. `xcodebuild archive`\r\n 2. `xcodebuild export`\r\n\r\n#### Archive\r\nThis makes an archive folder that has app, debug symbols, etc. It has all the artefacts necessary to export for Development, Ad-Hoc or App Store distribution. The app is signed with the certificate and provisioning profiles set in the .xcconfig or in the xcodeproj (using the --provision option).\r\n\r\n#### Export\r\nThis takes the archive and exports IPA for Development, Ad-Hoc or AppStore. During the export, the app is often resigned with a distribution certificate and an ad-hoc or AppStore distribution provisioning profile.\r\n\r\n## Problems\r\nCurrently the CLI does archive then export for development when `tns build|run` is issued. This leads to underwhelming results when developers try to publish at the store or export for ad-hoc using `tns build`. Why? During the export session the xcodebuild command accepts an `-exportOptionsPlist` that can contain keys listed in [`xcodebuild --help`](https://gist.github.com/PanayotCankov/3c81cf106c8b7bb5efa3ad05d9731abe). Most importantly the: `method : String`:\r\n\r\n> Describes how Xcode should export the archive. Available options: app-store, package, ad-hoc, enterprise, development, and developer-id. The list of options varies based on the type of archive. Defaults to development.\r\n\r\nThe default is \"development\", for exportOptionsPlist currently the app/App_Resources/Info.plist is currently provided (IMO incorrectly) and it has no `method` key, so `development` is used as fallback. When the developers configure the .xcconfig to use Ad-Hoc or AppStore provisioning profile, the export is still performed as development, the result IPA is then incorrectly set to still use development settings such as entitlements.\r\n\r\nHere are the related issues to exactly this problem:\r\n - https://github.com/NativeScript/nativescript-cli/issues/2888\r\n - https://github.com/NativeScript/nativescript-cli/issues/2999 \r\n    (perhaps incorrectly?) tries to provide distribution certificate for archive, while archive should be performed with development certificate and export should sign with distribution certificate\r\n - https://github.com/NativeScript/nativescript-cli/issues/2922\r\n    Signes multitarget app with the AppStore distribution, there is a bug in old Ruby and Cocoapods that leads to this\r\n - https://github.com/NativeScript/nativescript-cli/issues/2888\r\n    Building with --release as mentioned still exports with method: development\r\n - https://github.com/NativeScript/nativescript-cli/issues/2716\r\n - https://github.com/NativeScript/nativescript-cli/issues/2702\r\n    Similar to 2922 - resolved by ruby and cocoapods update but also the missing exportOptionsPlist is noted in warnings\r\n\r\nWe have discussed internally that adding `tns archive` + `tns export` would diverge too much from the current and Android build commands, also people shouldn't care how the build is implemented internally.\r\n\r\nHere are some clues how this can be addressed:\r\nThe export during `tns build ios` is done here:\r\nhttps://github.com/NativeScript/nativescript-cli/blob/1955028ac3ded6a012813476f08d0f4f0d89dddd/lib/services/ios-project-service.ts#L259-L263\r\nIt incorrectly gets the app/App_Resources/Info.plist as exportOptionsPlist. Instead such export.plist files should be generated somewhere in the platforms/ios/build similar to the exportArchive that is currently used only for distribution:\r\nhttps://github.com/NativeScript/nativescript-cli/blob/1955028ac3ded6a012813476f08d0f4f0d89dddd/lib/services/ios-project-service.ts#L212-L229\r\nThe method - Ad-Hoc or AppStore distribution that should be used during `tns build ios` should either be provided through an option, or inferred from the provisioning profile used during the build.","author":{"url":"https://github.com/PanayotCankov","@type":"Person","name":"PanayotCankov"},"datePublished":"2017-07-31T11:03:41Z","url":"https://github.com/NativeScript/nativescript-cli/issues/3020"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:697d8685-9753-65d6-ce52-c00adb25a42d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBF6A:2A5566:4301C6:57A353:6B0195C7
html-safe-noncee1c4802e836dd960f19a7407ef0d43cec12a3fe7fee09ba7f33a67f9c68a0440
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjZBOjJBNTU2Njo0MzAxQzY6NTdBMzUzOjZCMDE5NUM3IiwidmlzaXRvcl9pZCI6IjQ1OTYzMzgzMDI0ODI3NDg4NzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac2f99247d44315cbf58dabf6a4384ecf2715850c7b31710e8bcee11f99b1d86b0
hovercard-subject-tagissue:246720351
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/nativescript-cli/3020/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6d4f33f81c8e850041362ad8903802652ecab00c2228d959306223942269819c/NativeScript/nativescript-cli/issues/3020
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6d4f33f81c8e850041362ad8903802652ecab00c2228d959306223942269819c/NativeScript/nativescript-cli/issues/3020
og:image:altFrom Xcode 8.3+ the way IPA is built changed. The generation of the IPA is a two step process now: xcodebuild archive xcodebuild export Archive This makes an archive folder that has app, debug symb...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamePanayotCankov
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/NativeScript/nativescript-cli git https://github.com/NativeScript/nativescript-cli.git
octolytics-dimension-user_id7392261
octolytics-dimension-user_loginNativeScript
octolytics-dimension-repository_id21347346
octolytics-dimension-repository_nwoNativeScript/nativescript-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id21347346
octolytics-dimension-repository_network_root_nwoNativeScript/nativescript-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/NativeScript/nativescript-cli/issues/3020#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F3020
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FNativeScript%2Fnativescript-cli%2Fissues%2F3020
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=NativeScript%2Fnativescript-cli
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/3020
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/3020
Reloadhttps://github.com/NativeScript/nativescript-cli/issues/3020
NativeScripthttps://github.com/NativeScript
nativescript-clihttps://github.com/NativeScript/nativescript-cli
Codehttps://github.com/NativeScript/nativescript-cli
Issues357 (357)https://github.com/NativeScript/nativescript-cli/issues
Pull requests38 (38)https://github.com/NativeScript/nativescript-cli/pulls
Actionshttps://github.com/NativeScript/nativescript-cli/actions
Projectshttps://github.com/NativeScript/nativescript-cli/projects
Security and qualityhttps://github.com/NativeScript/nativescript-cli/security
Insightshttps://github.com/NativeScript/nativescript-cli/insights
https://github.com/NativeScript/nativescript-cli
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/3020
New issuehttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/3020
iOS Archive Export unexpected behavior when using AdHoc or AppStore provisioninghttps://github.com/NativeScript/nativescript-cli/issues/3020#top
code signinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22code%20signing%22
os: ioshttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
3.2.0https://github.com/NativeScript/nativescript-cli/milestone/56
https://github.com/PanayotCankov
PanayotCankovhttps://github.com/PanayotCankov
on Jul 31, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issue-246720351
xcodebuild --helphttps://gist.github.com/PanayotCankov/3c81cf106c8b7bb5efa3ad05d9731abe
Build in release mode for iOS doesn't seem to set the production mode for APN #2888https://github.com/NativeScript/nativescript-cli/issues/2888
iOS Archive does not respect release flag #2999https://github.com/NativeScript/nativescript-cli/issues/2999
Unable to tns publish ios #2922https://github.com/NativeScript/nativescript-cli/issues/2922
Build in release mode for iOS doesn't seem to set the production mode for APN #2888https://github.com/NativeScript/nativescript-cli/issues/2888
Web pack issues when build in release mode #2716https://github.com/NativeScript/nativescript-cli/issues/2716
EXPORT FAILED xcode 8.3 #2702https://github.com/NativeScript/nativescript-cli/issues/2702
nativescript-cli/lib/services/ios-project-service.tshttps://github.com/NativeScript/nativescript-cli/blob/1955028ac3ded6a012813476f08d0f4f0d89dddd/lib/services/ios-project-service.ts#L259-L263
1955028https://github.com/NativeScript/nativescript-cli/commit/1955028ac3ded6a012813476f08d0f4f0d89dddd
nativescript-cli/lib/services/ios-project-service.tshttps://github.com/NativeScript/nativescript-cli/blob/1955028ac3ded6a012813476f08d0f4f0d89dddd/lib/services/ios-project-service.ts#L212-L229
1955028https://github.com/NativeScript/nativescript-cli/commit/1955028ac3ded6a012813476f08d0f4f0d89dddd
https://github.com/PanayotCankov
PanayotCankovhttps://github.com/PanayotCankov
on Jul 31, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319039243
@PeterStaevhttps://github.com/PeterStaev
@sis0k0https://github.com/sis0k0
@tjvantollhttps://github.com/tjvantoll
@pkolevahttps://github.com/pkoleva
@etabakovhttps://github.com/etabakov
https://github.com/PeterStaev
PeterStaevhttps://github.com/PeterStaev
on Jul 31, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319053678
@PanayotCankovhttps://github.com/PanayotCankov
https://github.com/tjvantoll
tjvantollhttps://github.com/tjvantoll
on Jul 31, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319055308
@PeterStaevhttps://github.com/PeterStaev
https://github.com/PanayotCankov
PanayotCankovhttps://github.com/PanayotCankov
on Jul 31, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319057704
https://github.com/NativeScript/ios-mobileprovision-finderhttps://github.com/NativeScript/ios-mobileprovision-finder
https://github.com/PeterStaev
PeterStaevhttps://github.com/PeterStaev
on Aug 1, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319302325
@PanayotCankovhttps://github.com/PanayotCankov
https://github.com/tjvantoll
tjvantollhttps://github.com/tjvantoll
on Aug 1, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319353228
https://github.com/PanayotCankov
PanayotCankovhttps://github.com/PanayotCankov
on Aug 1, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319366668
https://github.com/PeterStaev
PeterStaevhttps://github.com/PeterStaev
on Aug 1, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319369517
@PanayotCankovhttps://github.com/PanayotCankov
https://github.com/PanayotCankov
PanayotCankovhttps://github.com/PanayotCankov
on Aug 2, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-319628366
@PeterStaevhttps://github.com/PeterStaev
NativeScripthttps://github.com/NativeScript
on Aug 2, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1189245801
NativeScripthttps://github.com/NativeScript
on Aug 3, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1190812027
PeterStaevhttps://github.com/PeterStaev
on Aug 4, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1192633655
fixes NativeScript#3020https://github.com/PeterStaev/nativescript-cli/commit/9eecaa10ea8ece0efb180a06000a30ccca9914e3
NativeScript#3020https://github.com/NativeScript/nativescript-cli/issues/3020
https://docs.github.com/articles/closing-issues-via-commit-messages
9eecaa1https://github.com/PeterStaev/nativescript-cli/commit/9eecaa10ea8ece0efb180a06000a30ccca9914e3
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Aug 10, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1200971747
fixes #3020https://github.com/NativeScript/nativescript-cli/commit/ac301badca23d871944ad3a044849157508c3078
#3020https://github.com/NativeScript/nativescript-cli/issues/3020
https://docs.github.com/articles/closing-issues-via-commit-messages
ac301bahttps://github.com/NativeScript/nativescript-cli/commit/ac301badca23d871944ad3a044849157508c3078
rosen-vladimirovhttps://github.com/rosen-vladimirov
completedhttps://github.com/NativeScript/nativescript-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3036https://github.com/NativeScript/nativescript-cli/pull/3036
on Aug 11, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1202553312
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Aug 11, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1202553332
Fix IPA export (#3036)https://github.com/NativeScript/nativescript-cli/commit/815f0a9dc072944d3a244ba418266d131e9d79f8
#3036https://github.com/NativeScript/nativescript-cli/pull/3036
https://docs.github.com/articles/closing-issues-via-commit-messages
815f0a9https://github.com/NativeScript/nativescript-cli/commit/815f0a9dc072944d3a244ba418266d131e9d79f8
rosen-vladimirovhttps://github.com/rosen-vladimirov
on Aug 11, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1202553596
rosen-vladimirovhttps://github.com/rosen-vladimirov
Ready For Testhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22Ready%20For%20Test%22
on Aug 11, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1202554711
https://github.com/dtopuzov
dtopuzovhttps://github.com/dtopuzov
on Aug 14, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#issuecomment-322167106
dtopuzovhttps://github.com/dtopuzov
code signinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22code%20signing%22
os: ioshttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
on Aug 14, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1204661706
pkolevahttps://github.com/pkoleva
3.2.0https://github.com/NativeScript/nativescript-cli/milestone/56
on Aug 25, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1221218816
dtopuzovhttps://github.com/dtopuzov
completedhttps://github.com/NativeScript/nativescript-cli/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Aug 25, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1221254762
dtopuzovhttps://github.com/dtopuzov
Ready For Testhttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22Ready%20For%20Test%22
on Aug 25, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1221254764
etabakovhttps://github.com/etabakov
on Sep 8, 2017https://github.com/NativeScript/nativescript-cli/issues/3020#event-1240671574
Update production with master to update the setup scripts (#3112)https://github.com/NativeScript/nativescript-cli/commit/8f231bda66bb7c5ac49b1456e9b31aff94c3d3e8
#3112https://github.com/NativeScript/nativescript-cli/pull/3112
https://docs.github.com/articles/closing-issues-via-commit-messages
8f231bdhttps://github.com/NativeScript/nativescript-cli/commit/8f231bda66bb7c5ac49b1456e9b31aff94c3d3e8
Sign up for freehttps://github.com/signup?return_to=https://github.com/NativeScript/nativescript-cli/issues/3020
Sign in to commenthttps://github.com/login?return_to=https://github.com/NativeScript/nativescript-cli/issues/3020
code signinghttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22code%20signing%22
os: ioshttps://github.com/NativeScript/nativescript-cli/issues?q=state%3Aopen%20label%3A%22os%3A%20ios%22
3.2.0https://github.com/NativeScript/nativescript-cli/milestone/56
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.