Skip to content
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

[msbuild] Tweak the codesign logic for iOS Simulator builds #3114

Merged
merged 3 commits into from
Jan 8, 2018

Conversation

jstedfast
Copy link
Member

@jstedfast jstedfast commented Dec 19, 2017

Don't always codesign, especially for Xcode 8 which seems to break.

iOS Simulator builds should only be codesigned if they require
Entitlements (signified by RequireProvisionProfile).

Don't *always* codesign, especially for iOS8 which seems to break.

iOS Simulator builds should only be codesigned if they require
Entitlements (signified by RequireProvisionProfile).
@spouliot
Copy link
Contributor

note about commit message: Xcode 8 != iOS 8 - it's the former, not the later, that cause problems

@jstedfast
Copy link
Member Author

Thanks, good catch

@monojenkins
Copy link
Collaborator

Build failure

Copy link
Contributor

@timrisi timrisi left a comment

Choose a reason for hiding this comment

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

Looks like tests for extensions/watch apps are failing with the change.

Copy link
Contributor

@VincentDondain VincentDondain left a comment

Choose a reason for hiding this comment

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

LGTM

@jstedfast
Copy link
Member Author

Looks like the unit tests were wrong (wrongly assuming that sim builds would result in a codesigned executable)

@monojenkins
Copy link
Collaborator

Build failure

@jstedfast
Copy link
Member Author

Can someone who understands how to read jenkins output explain why the build failed this time? Looks like none of the unit tests failed to me.

@VincentDondain
Copy link
Contributor

@jstedfast so given the attached test report, only framework-test failed.

I don't think that's related to your PR but you can always run framework-test locally to double check (;

Since I believe there's no precedence for this issue (bugzilla or maccore issues), I'd recommend you file one at https://github.com/xamarin/maccore/issues/new.

@timrisi
Copy link
Contributor

timrisi commented Jan 4, 2018

If you hit the Test Report button on the left side in jenkins (https://jenkins.mono-project.com/job/xamarin-macios-pr-builder/5891/Test_Report/) you can see the failure. Generally if you don't have any specific test failures listed, the Test Report will show something indicating what went wrong. In this case, it's not specific tests failing, but the framework-test run is crashing on iOS and tvOS and failing on watchOS

@jstedfast
Copy link
Member Author

Seems possibly related:

Reason: no suitable image found.  Did find:
	/Users/builder/Library/Developer/CoreSimulator/Devices/17A53065-205D-4209-BC51-3B9DB0252878/data/Containers/Bundle/Application/05E3EA14-4809-464A-8D0E-47CCBC9366DE/frameworktest.app/Frameworks/XTest.framework/XTest: required code signature missing for '/Users/builder/Library/Developer/CoreSimulator/Devices/17A53065-205D-4209-BC51-3B9DB0252878/data/Containers/Bundle/Application/05E3EA14-4809-464A-8D0E-47CCBC9366DE/frameworktest.app/Frameworks/XTest.framework/XTest'

@monojenkins
Copy link
Collaborator

Build success

@jstedfast
Copy link
Member Author

woohoo!

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

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

We should get @alanmcgovern to test this (from master) before back porting to 15.6

Copy link
Contributor

@chamons chamons left a comment

Choose a reason for hiding this comment

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

Should we add a manual test to catch this in the future?

@spouliot spouliot removed this from the d15-6 milestone Jan 8, 2018
@spouliot
Copy link
Contributor

spouliot commented Jan 8, 2018

@jstedfast milestone does not match the branch, we need a PR for 15.6 too

@spouliot spouliot merged commit cfdf59d into master Jan 8, 2018
@jstedfast jstedfast deleted the msbuild-ios8-codesign-tweaks branch January 8, 2018 19:32
@jstedfast
Copy link
Member Author

@spouliot ok, will post a new PR for 15.6

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