Hello,
I have created Apple Watch extension for existing application. Uploaded it to TestFlight, turned on internal testing and added testers. But only the main application is installed on the phone (nothing happens on the watch) and there is no option on the TestFlight app to install it. Also there is no indication that the app has watch support.
If I unpair the watch and then pair it, then I can see that the application starts to install on the watch and then fails with Application Verification Failed error.
This is the complete error from iPhone Console logs:
: failed to install WatchKit application, error: (Error Domain=LaunchServicesError Code=0 "The operation couldn’t be completed. (LaunchServicesError error 0.)" UserInfo=0x1756ae70 {Error=ApplicationVerificationFailed, ErrorDetail=-402620395, ErrorDescription=Failed to verify code signature of MIExecutableBundle : path = ...com.prehensilesoftware.operaddsv2.watchkitapp.app identifier = com.prehensilesoftware.operaddsv2.watchkitapp type = 4 : 0xe8008015 (Signer did not match any installed provisioning profile)})
: (Note ) WatchKit: application (com.prehensilesoftware.operaddsv2.watchkitapp), install status: 8, message: application install failed: Application Verification Failed
Additional info:
I'm stuck from 3 days on this issue, will greatly appreciate any feedback (nothing from google helps).
I followed instructions @ https://forums.xamarin.com/discussion/40388/disallowed-paths-itunesmetadata-plist-found-at-when-submitting-to-app-store/p1 related to removing iTunesMetadata.plist, which I still had to also do with latest tools?!?
TestFlight app on phone can now install watch app.
Answers
Resolved.. The issue turned out to be the one described in this post: https://devforums.apple.com/message/1127413#1127736
In the archived package: Products/Applications/[AppName] package/Plugins/[ExtensionName]/[WatchAppName] package/Info.plist had two entries for UIDeviceFamily > 1 and 4. 1 is for iPhone, 4 is Watch. After I removed the entry for the iPhone the problem disappeared.
I created new application and the issue persists there. If this setting is automatically added by Xamarin Studio, it should be fixed ASAP.
The build environments where: Xamarin Studio 5.9.1, Xcode 6.2
@GeorgiKolev, were you able to submit your build to app store? I have same? issue -- app uploads to app store fine, but won't install watch app via TestFlight. I tried doing the following:
But I get error about invalid signing when I then upload via Loader. I do not see error if I skip the manual Info.plist edit. So editing the file manually is causing issue.
FYI, with version of build that has the double entry in UIDeviceFamily (1 & 4 devices), I see this in device log:
EXITING!!! updateGizmoApplicationsWithCompletion error - pluginProxy == nil for: file:///private/var/mobile/Containers/Bundle/Application/CE9A08AF-2A27-4914-BA83-4B92E1DA6AD9/Sundial.app/PlugIns/com.tier9digital.sundial.watchkitextension.appex/
Google does not find anything for this error (with my app info removed).
On the phone, the phone version installs/runs OK and the "Apple Watch" app on phone shows my watch app, but it says "Install from TestFlight app..."
I followed instructions @ https://forums.xamarin.com/discussion/40388/disallowed-paths-itunesmetadata-plist-found-at-when-submitting-to-app-store/p1 related to removing iTunesMetadata.plist, which I still had to also do with latest tools?!?
Submit the app using Xcode's app submission workflow.
TestFlight app on phone can now install watch app.
I created a bug for this: https://bugzilla.xamarin.com/show_bug.cgi?id=30958
Sorry for late reply. But, yes, as you found out:
the necessary additional steps are:
No worries. I was just so glad you had documented the problem and solution. Thank you!
Is there a similar solution for AdHoc deployment? I am having the same error occur.
You can not deploy to iTunes (TestFlight) AdHoc build as far as I know.
While the Bugzilla thread says fixed, it is not until Xamarin.iOS 8.12. Why couldn't this get in the Xamarin.iOS that was released to Beta this week? Jeez.
Same problem (it seems no way to avoid the problems caused by xamarin.ios).
Right now the version is Xamarin.ios.8.10.3.2, when 8.12?
All caused by Xamarin.
Same problems (it seems no way to avoid the problems caused by xamarin.ios).
Right now the version is Xamarin.ios.8.10.3.2, when 8.12?
All caused by Xamarin.
Xamarin can only be responsible for the things they control, they don't control what Apple does in beta's, and Apple have a habit of changing fundamental things at the last minute. I have used Xamarin tools for 3+ years and whilst there is always room for improvement I think they do a really good job, I am sure they have teams working on the critical stuff, but like everything in development sometimes the seemly simple things can open a can of worms.
End of the day keeping the developers like us happy is what pays them money so it will be at the top of their list of priorities to keep us happy.