Skip to content

[msbuild] Fix watchOS submissions with Xcode 14. Fixes #16499. - #16526

Merged
rolfbjarne merged 2 commits into
dotnet:xcode14.1from
rolfbjarne:watchos-xcode14
Nov 2, 2022
Merged

rolfbjarne merged 2 commits into
dotnet:xcode14.1from
rolfbjarne:watchos-xcode14

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

We have to remove any arm64e slices from the WK binary we copy from Apple's
SDK into the Watch app, as explained in Apple's forums.

Ref: https://developer.apple.com/forums/thread/714224
Fixes #16120.
Fixes #16499.

We have to remove any arm64e slices from the WK binary we copy from Apple's
SDK into the Watch app, as explained in Apple's forums.

Ref: https://developer.apple.com/forums/thread/714224
Fixes dotnet#16120.
Fixes dotnet#16499.
@rolfbjarne rolfbjarne added the bug If an issue is a bug or a pull request a bug fix label Oct 31, 2022
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto

Copy link
Copy Markdown
Member

@rolfbjarne submission tests are happy with your PR :)

@vs-mobiletools-engineering-service2

This comment has been minimized.

@jahmai-ca

jahmai-ca commented Nov 1, 2022 •

Copy link
Copy Markdown

I can confirm that using the .targets changes in this PR works around the ITMS-90398 email issue seen in #16499, however as mentioned in that issue it unlocks a new issue in that Bitcode is obsolete (ITMS-90482), but I can't seem to disabled bitcode (<MtouchEnableBitcode>False</MtouchEnableBitcode>) in Xamarin because Xamarin produces the build error MTOUCH : error MT0145: Please use device specific builds on WatchOS when building for Debug..

@dalexsoto

Copy link
Copy Markdown
Member

@jahmai-ca You need to be using Xcode 14.0 in order to build without bitcode is that what you are currently using? Please check that both Xcode-select and VS are pointing to the same Xcode 14.0 version.

@jahmai-ca

Copy link
Copy Markdown

@jahmai-ca You need to be using Xcode 14.0 in order to build without bitcode is that what you are currently using? Please check that both Xcode-select and VS are pointing to the same Xcode 14.0 version.

@dalexsoto We're using the macos-latest VM on Azure Devops, and we do:

sudo xcode-select -s /Applications/Xcode_14.0.1.app/Contents/Developer

in the yaml, and in the MSBuild I can see:

Xamarin.iOS 15.12.0.2 (d17-3: 87f98a75e) using framework: /Applications/Xcode_14.0.1.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS9.0.sdk.

As this is a CI build, VS is not loaded.

@jahmai-ca

Copy link
Copy Markdown

Per my comment on the linked issue, I believe the problem is this line:

https://github.com/xamarin/xamarin-macios/blob/main/tools/mtouch/Application.mtouch.cs#L648

I don't think mtouch should be enforcing bitcode check anymore.

@jahmai-ca

Copy link
Copy Markdown

I have successfully deployed our Watch app to AppStore / Testflight using this fix. See #16499 (comment) for more details. Thanks again!

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

Legacy Xamarin (No breaking changes)
  • iOS (no change detected)
  • tvOS (no change detected)
  • watchOS (no change detected)
  • macOS (no change detected)
NET (empty diffs)
  • iOS: (empty diff detected)
  • tvOS: (empty diff detected)
  • MacCatalyst: (empty diff detected)
  • macOS: (empty diff detected)

❗ API diff vs stable (Breaking changes)

Legacy Xamarin (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
.NET (:heavy_exclamation_mark: Breaking changes :heavy_exclamation_mark:)
Legacy Xamarin (stable) vs .NET

✅ Generator diff

Generator diff is empty

Pipeline on Agent
Hash: 3cdbce797daa041e9b3f8148bd7f39fa04087015 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

📚 [PR Build] Artifacts 📚

Packages generated

View packages

Pipeline on Agent XAMBOT-1165.Monterey'
Hash: 3cdbce797daa041e9b3f8148bd7f39fa04087015 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

❌ [PR Build] Tests on macOS M1 - Mac Big Sur (11.5) failed ❌

Failed tests are:

  • monotouch-test

Pipeline on Agent
Hash: 3cdbce797daa041e9b3f8148bd7f39fa04087015 [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🔥 [CI Build] Test results 🔥

Test results

❌ Tests failed on VSTS: simulator tests

0 tests crashed, 12 tests failed, 211 tests passed.

Failures

❌ monotouch tests

12 tests failed, 11 tests passed.
Details
  • monotouch-test/Mac [dotnet]/Debug [dotnet]: Failed (Test run crashed (exit code: 134).
    Test run crashed)
  • monotouch-test/Mac [dotnet]/Debug (static registrar) [dotnet]: Failed (Test run crashed (exit code: 134).
    Test run crashed)
  • monotouch-test/Mac Catalyst [dotnet]/Debug [dotnet]: Failed (Test run crashed (exit code: 134).
    Test run crashed)
  • monotouch-test/iOS Unified 64-bits - simulator/Debug [dotnet]: Crashed
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (LinkSdk) [dotnet]: Crashed
  • monotouch-test/iOS Unified 64-bits - simulator/Debug (static registrar) [dotnet]: Crashed
  • monotouch-test/iOS Unified 64-bits - simulator/Release (all optimizations) [dotnet]: Crashed
  • monotouch-test/tvOS - simulator/Debug [dotnet]: Crashed
  • monotouch-test/tvOS - simulator/Debug: Failed
  • monotouch-test/tvOS - simulator/Debug (LinkSdk) [dotnet]: Crashed
  • monotouch-test/tvOS - simulator/Debug (static registrar) [dotnet]: Crashed
  • monotouch-test/tvOS - simulator/Release (all optimizations) [dotnet]: Crashed

Html Report (VSDrops) Download

Successes

✅ bcl: All 69 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests: All 1 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 7 tests passed. Html Report (VSDrops) Download
✅ framework: All 8 tests passed. Html Report (VSDrops) Download
✅ generator: All 2 tests passed. Html Report (VSDrops) Download
✅ interdependent_binding_projects: All 7 tests passed. Html Report (VSDrops) Download
✅ install_source: All 1 tests passed. Html Report (VSDrops) Download
✅ introspection: All 8 tests passed. Html Report (VSDrops) Download
✅ linker: All 65 tests passed. Html Report (VSDrops) Download
✅ mac_binding_project: All 1 tests passed. Html Report (VSDrops) Download
✅ mmp: All 2 tests passed. Html Report (VSDrops) Download
✅ mononative: All 12 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ mtouch: All 1 tests passed. Html Report (VSDrops) Download
✅ xammac: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 8 tests passed. Html Report (VSDrops) Download
✅ xtro: All 2 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: [PR build]

@rolfbjarne

Copy link
Copy Markdown
Member Author

Test failures are unrelated (will be fixed with #16536).

@rolfbjarne
rolfbjarne merged commit 0304f2b into dotnet:xcode14.1 Nov 2, 2022
@rolfbjarne
rolfbjarne deleted the watchos-xcode14 branch November 2, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug If an issue is a bug or a pull request a bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants