-
Notifications
You must be signed in to change notification settings - Fork 511
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
Apple Watch support completely broken in all versions - ITMS-90398: Invalid WatchKit Support #16120
Comments
Just to note that creating a new project in Xcode and submitting the .ipa file from it works. I am not sure how much it is relevant, but I have noted that in Xcode now you have only the App project, there is no more an extension project. |
This was added as suggested here: #15954 (comment) |
One thing that I have tried but didn't help - targeting watchOS 9.0 and submitting only 64-bit binary. |
My best guess is that this issue explains also why this is happening: #16142 (comment) It points out that WatchkitStub is not used anymore in Xcode while Xamarin seems to use it (which likely causes this issue) and expects it (which caused that issue). |
I have further tried to build this with XCode 13 and Xamarin.iOS 15.12.0.2 and the issue still appears. So this isn't Xcode 14 issue at all!!!! |
@dalexsoto I would appreciate if you could be more precise on what this means:
At the moment WatchKit support is completely broken including with Xcode 13 and Xamarin iOS 15.12.0.2 as you can't submit any app to the store. It seems that you can't even submit the watch extension built in Xcode according to another issue. Unfortunately I am aware that your current level of quality allows to keep issues like this open (e.g. take a very deep look) for years (see: #10911 ), so I would like some sort of feedback if this is coming in a few weeks or it is better idea to say goodbye to watchOS on Xamarin and see what are my options....? |
After some more check, I can confirm that I was previously able to successfully build for the App Store using those identical tools. Which means either Apple changed something server side in the last two weeks or Visual Studio itself broke the process (if that is possible). |
The last test that I had in mind was checking whether Xcode 13 works as expected with a new project, and it works properly. I am just trying to narrow down the cause if someone at some points decides to take a look at this... |
I am experiencing the same issue. After building my app With VS 17.3.6 and Xcode 14 and uploading to AppStore Connect, the binary was rejected and I received an email from Apple with this error: ITMS-90398: Invalid WatchKit Support - The bundle contains an invalid implementation of WatchKit. The app may have been built or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information. |
I have same issue XCode 14.0.1 Xamario IOs 16.0.0.75. ITMS-90398: Invalid WatchKit Support - The bundle contains an invalid implementation of WatchKit. The app may have been built or signed with non-compliant or pre-release tools. Visit developer.apple.com for more information. after traying to upload to TestFlight , in visual studio 2022 mac and from windows as well any updated on this? |
We are having the same issue. We are NOT using Xamarin. |
Searching some more this is the official answer from Apple on why this is happening and what should be done: https://developer.apple.com/forums/thread/714224
@dalexsoto is this the reason why this fails on Xamarin? |
@chamons I apologise for tagging you without your direct relation to this issue, but I feel that something is wrong here and you were always helpful in such situations. At the moment this is the bug that completely blocks range of developers from releasing the app for at least 3 weeks, there is no workaround and there is the official Apple's answer on why this is happening which could likely lead to fairly quick fix and still there is no activity here. My personal guess is that it is just lack of awareness of the situation due to many ongoing activities now and fairly small number of people that cover it, but that is just my guess. Any help or at least some message would be highly appreciated. |
As I have reported this I am closing - it is not fixed but I don't expect it to be fixed. One thing is clear - Apple will require you to use SwiftUI to build watchOS apps (you can't create any other new projects in Xcode 14), so in couple of years Xamarin won't be able to support watchOS and if you want to support it you will have to rewrite the app. And I guess it is better to start to do it now. And it is even said that watchOS won't be available in .NET 6, so that's another reason why you will have to rewrite. Yes it would be better if they supported it properly and you wouldn't have to rush, but I guess you can read the message and something that is in dating called 'ghosting' - Microsoft is not brave enough to tell us the truth that they want us to get away from this as quickly as possible. |
We have the same issue. We now have to remove the WatchOS support in order to submit our app. @dalexsoto |
@ivanicin Can you please reopen this issue? I realise you no longer care about it but it affects other MS/Xamarin customers and this issue is being referenced by Microsoft support: https://learn.microsoft.com/en-us/answers/questions/1049349/tms-90398-invalid-watchkit-support-the-bundle-cont.html |
@jahmai-ca my resolution to close the issue came from the fact that everything points out that it won't be fixed. The issues that won't be fixed should be closed, that is actually a useful information for developers to give up on it and search for alternatives. At least one Microsoft representative was subscribed to this issue and I think that the wording was very clear. He hasn't reopened the issue. As said it is very unfortunate that Microsoft's employees don't have the right to say that this won't be fixed as such a decision is not announced, but in reality it is already in effect. On the other hand I think that they won't reopen this unless they have someone to assign to this task, that would be dishonest considering whole the conversation. And they don't. So keeping this close is helpful for everyone, it is better to know the truth than to live in some fairytale that this might get fixed one day. If you wish you can tag Alex Soto (I have tagged him multiple times and he answers on other issues but not on this), David Ortineaux and Rolf Bjarne to be sure that they are informed, after that I don't see any point in doing anything but to give up. |
Not sure if this would help but I've got a solution, as described in another thread. I finally got this fixed and build was accepted by TestFlight. Turned out it's the VALID_ARCHS settings. If I remember correctly it was carried over from Xcode 11 to 12, that the VALID_ARCHS in Build Settings ended up under User_Defined. All I needed to do was to change this setting to $(ARCHS_STANDARD) in both WatchApp and Watch Extension. |
Cannot find such setting $(ARCHS_STANDARD) in Visual Studio for Mac. |
That's great but how do we do this workaround for Xamarin applications? |
IMO it's up to Microsoft to close issues they don't want to fix. But anyway I'm not going to try to convince you, so I just created a clone of this issue #16499 - hope you don't mind. |
Even if you could it is not useful as he had the problem because he wanted to use app format that was available only in watchOS 1.0, that is not our problem. |
Not a problem :). I hope you'll be of better luck than what I was... |
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 xamarin#16120. Fixes xamarin#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 #16120. Fixes #16499.
Steps to Reproduce
Build any project that contains a watchOS extension and submit it to the App Store (I have provided the sample but it is just a slightly modified default template so that it can pass other upload tests).
Expected Behavior
This should work.
Actual Behavior
You get an email like this:
Environment
Version information
Build Logs
Log.txt
Example Project (If Possible)
WatchTest.zip
The text was updated successfully, but these errors were encountered: