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
ERROR ITMS-90733: "Missing architecture. Apps built with Watch OS 5.0 and later SDKs must contain additional architectures." #5951
Comments
The workaround stopped working once Apple required the new architecture to be part of the submission. This feature (new arch) is still in preview (not in our normal builds). You're using a different preview build (for
If you need to submit a watchOS application please use the package mentioned in the blog post, i.e. |
Do we have an ETA for when this will be fixed in VS 2019? (I'm using VS on PC) |
I have used the proposed 12.6.0.59, I can submit but the Watch app is huge now, 84MB (max limit 80MB). No idea how to get it smaller :( The only 3rd party references I have are Newtonsoft.JSON and Polly. I am linking SDK only and applied all other tricks. After removing Polly the build was approved by Apple, which means I am "on the edge" now. Are both 32 and 64bit counting against the 80MB quota? |
Newtonsoft.JSON and its dependencies are pretty huge, and a universal binary means that the size scales up progressively. |
This solution is valid but ultimately this is recommending the use of a preview package which doesn't speak to stability. When is the ETA for this issue to be resolved in the stable branch? |
Dosen't work in preview as I installed VS preview on my PC yesterday (and also changed MAC to preview). So at the moment my company cannot submit their watch app. Man this is getting frustrating!!! |
With latest Xcode and the Xamarin.iOS pointed to in https://devblogs.microsoft.com/xamarin/apple-new-processor-architecture/ + project hack described there I was able to submit to App Store for TestFlight and install AdHoc directly. I do have issue where build fails and I have to retry one or two times before it will succeed. So at first I thought I had not configured the MtouchArch stuff correctly. |
In preview when I do a build I get the following error from VS: |
Did you install https://dl.xamarin.com/uploads/05uvso0cndi/xamarin.ios-12.6.0.59.pkg? My workflow happened to be: Install latest from Preview channel Not sure if the latest Preview is supposed to have the fix. |
@spouliot Is there any ETA when this will be included in the stable release? Because working with an outdated Xamarin.iOS is not the best solution if any further update include any important bugfix... |
I can install the Xamarin.ios 12.6 package on my Mac however VS on my PC complains of a mismatch and wont compile. |
Does anyone know if this is being actively worked on? And if not who do we raise this with? |
In my case I used the stable channel on macOS (VS4Mac), then installed the Xamarin.iOS preview package. I didn't need to switch to the preview channel. |
Yes, I have refactored the code and eliminated the Polly library dependency. After that I was able to push the build to TestFlight.
Next (big) candidate is NewtonsoftJSON.
… On 9. May 2019, at 07:33, Brent ***@***.***> wrote:
I have used the proposed 12.6.0.59, I can submit but the Watch app is huge now, 84MB (max limit 80MB). No idea how to get it smaller :( The only 3rd party references I have are Newtonsoft.JSON and Polly. I am linking SDK only and applied all other tricks.
After removing Polly the build was approved by Apple, which means I am "on the edge" now.
Most probably using an older Newtonsoft version will save some more KBs...
Are both 32 and 64bit counting against the 80MB quota?
I'm running into the same issue now. Size of 77MB when limit is 75MB. Were you able to get past this @ThumbGen?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
It might be hacky and incomplete, but here's my lightweight implementation of a JSON parser/serializer: https://github.com/Didstopia/FeatherJSON I'm sure there are plenty of other libraries out there, but my main and only goal with this one was to make it as tiny as possible, specifically for working with iOS and watchOS. |
Thanks, all of these additional comments helped quite a bit. I was able to get my build uploaded after trimming some files out of the project but the fact remains that this is using a preview build that I can't get on my Azure DevOps pipeline (using the hosted build agent). Working outside of my CI/CD pipeline and building with a preview build is quite a big issue in my mind and I'm struggling with the fact that this issue is "closed". @spouliot can you clarify why this issue is closed and if possible, comment on timing for an expected fix? |
@BrentLanphear this particular issue is closed because the original reporter's problem is not a bug in Xamarin.iOS (he wasn't using the Xamarin.iOS package with support for ARM64_32). The work for ARM64_32 is tracked here: #4864, which is still open. |
Could we get a new preview with the patch cut based on the latest stable? You're asking us to go back a few significant releases to get this patch, which is the only option we have now to actually do a release for apps with WatchOS support. Thanks. EDIT: #4864 (comment) |
To trim your ipa more, activate "link all", build, run, observe the logs for any error/crash, add [Preserve] attributes to classes, methods, properties or events that are optimized away because the static analyser did not found usage for them, build, run, observe logs ... loop until all is working. Cover 100% of your code like this (if you can). Of course you need a strong error logging infrastructure in your code. |
Can I switch to latest Preview Xamarin.iOS, compile against Xcode 11 Beta, and deploy to watch? I already have report from customer running watchOS 6 Beta that my app, while running, has a UI glitch that makes the app unusable. Yes Beta I know. But I need to see if I can fix. I changed SDK pref to point to my Xcode 11 Beta but when I compile I get and error compiling the watch extension:
=== Visual Studio Enterprise 2019 (Preview) for Mac === Version 8.1 Preview (8.1 build 2697)
=== Mono Framework MDK === Runtime: === NuGet === Version: 5.0.2.5988 === .NET Core === Runtime: /usr/local/share/dotnet/dotnet === Xamarin.Profiler === Version: 1.6.10 === Updater === Version: 11 === Xamarin.Android === Version: 9.3.0.22 (Visual Studio Enterprise) SDK Tools Version: 26.1.1 Build Information: === Microsoft Mobile OpenJDK === Java SDK: /Users/mmuegel/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25 === Android Device Manager === Version: 1.2.0.44 === Apple Developer Tools === Xcode 11.0 (14855.18) === Xamarin.Mac === Version: 5.10.0.153 (Visual Studio Enterprise) === Xamarin.iOS === Version: 12.10.0.172 (Visual Studio Enterprise) === Xamarin Designer === Version: 16.1.0.459 === Xamarin Inspector === Version: 1.4.3 === Build Information === Release ID: 801002697 === Operating System === Mac OS X 10.14.5 |
Yes, the current stable and the upcoming d16-2 release won't work with Xcode 11. We've already fixed this particular problem in our work to support Xcode 11, which can be found here: https://github.com/xamarin/xamarin-macios/commits/xcode11. You can download packages by clicking on the red cross next to a commit, and then the details for the |
Excellent @rolfbjarne! With preview channel + xamarin.ios-12.99.0.96.pkg I was able to deploy to Xcode 11 watchOS 6 simulator. Note: I did have to kill the first deploy from the Watch app on the paired iPhone. It was stuck and re-run from VS.NET did not fix. |
Update on deployment to watch sim: I have not been able to get it to just install and run like normal. I have to stop the VS.NET debugger, stop the install from Watch companion app, and then click INSTALL in Watch companion app. If I do nothing and wait, VS.NET will eventually timeout: |
@t9mike yes, there might be kinks we haven't quite been able to iron out with Xcode 11 yet (they changed a lot of things regarding the watch this year). Do you see the same behavior if you use Visual Studio for Mac? |
That is what I use full time. I thought I could not stop the install on companion app before killing VS.NET. User error I think %-). This worked to get debug session:
So workable. Thanks for the assist! |
Steps to Reproduce
Expected Behavior
.ipa file uploads successfully for processing in AppStoreConnect
Actual Behavior
Removing the Arm64_32 architecture, allows for compile but the workaround(#4810) of manipulating the plist to for watchos4.3 no longer works for submission.
Error is returned after Application Loader runs analysis
ERROR ITMS-90733: "Missing architecture. Apps built with Watch OS 5.0 and later SDKs must contain additional architectures."
Environment
=== Visual Studio Professional 2019 for Mac ===
Version 8.0.4 (build 0)
Installation UUID: de421c27-00ed-45c0-89ee-830552b71368
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.6.0.2 (d16-0 / 0406829)
=== Mono Framework MDK ===
Runtime:
Mono 5.18.1.3 (2018-08/fdb26b0a445) (64-bit)
Package version: 518010003
=== NuGet ===
Version: 4.8.2.5835
=== .NET Core ===
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
2.1.9
2.1.8
2.1.7
2.1.6
2.0.5
SDK: /usr/local/share/dotnet/sdk/2.1.505/Sdks
SDK Versions:
2.1.505
2.1.504
2.1.503
2.1.500
2.1.4
MSBuild SDKs: /Library/Frameworks/Mono.framework/Versions/5.18.1/lib/mono/msbuild/15.0/bin/Sdks
=== Xamarin.Profiler ===
Version: 1.6.9
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
=== Updater ===
Version: 11
=== Apple Developer Tools ===
Xcode 10.2.1 (14490.122)
Build 10E1001
=== Xamarin.Mac ===
Version: 5.10.0.147 (Visual Studio Professional)
Hash: a5f2633
Branch: d16-1
Build date: 2019-04-10 09:42:20-0400
=== Xamarin.iOS ===
Version: 12.10.0.147 (Visual Studio Professional)
Hash: a5f2633
Branch: d16-1
Build date: 2019-04-10 09:42:19-0400
=== Xamarin.Android ===
Version: 9.1.8.0 (Visual Studio Professional)
Android SDK: /Users/a206411610/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
4.4 (API level 19)
5.0 (API level 21)
8.0 (API level 26)
8.1 (API level 27)
SDK Tools Version: 26.1.1
SDK Platform Tools Version: 28.0.2
SDK Build Tools Version: 27.0.3
=== Microsoft Mobile OpenJDK ===
Java SDK: /Users/a206411610/Library/Developer/Xamarin/jdk/microsoft_dist_openjdk_8.0.25
1.8.0-25
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Android Device Manager ===
Version: 1.2.0.14
Hash: 86df26f
Branch: remotes/origin/d16-0
Build date: 2019-04-05 16:58:56 UTC
=== Xamarin Designer ===
Version: 4.17.4.418
Hash: 3d086e814
Branch: remotes/origin/d16-0
Build date: 2019-04-01 09:20:10 UTC
=== Xamarin Inspector ===
Version: 1.4.3
Hash: db27525
Branch: 1.4-release
Build date: Mon, 09 Jul 2018 21:20:18 GMT
Client compatibility: 1
=== Build Information ===
Release ID: 800040000
Git revision: 09831ae7eef8ea58cdfad2e923c65a5bf70d27fd
Build date: 2019-04-15 23:04:13+00
Build branch: master
Xamarin extensions: 5efedb990d786142d3b54351c01ce867af7b7680
=== Operating System ===
Mac OS X 10.14.4
Darwin 18.5.0 Darwin Kernel Version 18.5.0
Mon Mar 11 20:40:32 PDT 2019
root:xnu-4903.251.3~3/RELEASE_X86_64 x86_64
=== Enabled user installed extensions ===
MFractor 3.8.0
AddinMaker 1.5.0
NuGet Package Management Extensions 0.17
Build Logs
Example Project (If Possible)
The text was updated successfully, but these errors were encountered: