Skip to content

[msbuild] Always codesign app bundles if the codesign key is non-null - #2697

Merged
spouliot merged 1 commit into
xcode9from
xcode9-msbuild-59379
Sep 14, 2017
Merged

[msbuild] Always codesign app bundles if the codesign key is non-null#2697
spouliot merged 1 commit into
xcode9from
xcode9-msbuild-59379

Conversation

@jstedfast

Copy link
Copy Markdown
Member

...even if it is a simulator build.

Turns out that starting with Xcode9, sim builds need to be codesigned
for App Groups entitlements to work properly. Interestingly, the
DetectSigningIdentity logic had a comment about needing to codesign
simulator builds for some entitlements to work already starting with
Xcode 8 but apparently the iOS targets did not respect this.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59379

...even if it is a simulator build.

Turns out that starting with Xcode9, sim builds need to be codesigned
for App Groups entitlements to work properly. Interestingly, the
DetectSigningIdentity logic had a comment about needing to codesign
simulator builds for some entitlements to work already starting with
Xcode 8 but apparently the iOS targets did not respect this.

Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59379
@jstedfast

Copy link
Copy Markdown
Member Author

This is the same patch as the one in #2683

@monojenkins

Copy link
Copy Markdown
Contributor

Build success

@spouliot spouliot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jstedfast I’m assuming _CodeSigningKey is not empty when we have "Developer (automatic)" in the settings, right ?

So does this force signing all the time ? for all projects ?

because it's a significant impact in simulator build times :(

@spouliot spouliot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://xamarinhq.slack.com/archives/C03CCJNR7/p1505406722000223

TL&DR a special - key is used when none is available and codesign accept this

@spouliot
spouliot merged commit 1e8c5de into xcode9 Sep 14, 2017
@spouliot
spouliot deleted the xcode9-msbuild-59379 branch September 14, 2017 20:27
mandel-macaque added a commit to mandel-macaque/xamarin-macios that referenced this pull request Aug 23, 2023
Bump maccore to bing the changes for governance and some others:

* Merge 'xcode15' into 'main'. (dotnet#2690)
* [Submission] Add NotaryTool Task (dotnet#2689)
* [XmlDocSync] Remove the XmlDocSync reference from the project. (dotnet#2693)
* [mlaunch] Refactor project structure (dotnet#2694)
* [certificates] Update la_dev_apple.p12, la_distr_apple.p12 and la_mac_installer_distr.p12 (dotnet#2697)
* [Governance] Update the false positives files based on the last runs. (dotnet#2698)

Full idff: https://github.com/xamarin/maccore/compare/fd15821e6780a7439df467c69eb511a046adfa06...63fd14954ca3328219c5f79c754f0b329091535c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants