-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
failed to prepare device for development. xcode 14.2, iOS 16.2 - Physical device #12286
Comments
I have the same also for Xcode 14.1 |
I got the same problem... |
I too have the same issue. Any workaround possible? |
Has someone found a way to sort this out? |
and now I'm totaly blocked. I need check app on device |
@rolfbjarne does this mean anything to you? |
Having the same issue with Xcode 14.2. Strange thing is it will deploy using VS for Mac but in Rider the simulator works fine but when I try to deploy to my physical iPhone I get this error. When I check the file path Applications/Xcode.app/Contents/SharedFrameworks/ there is no DVTDeveloperModeHelper.framework folder. |
Simulator works fine for rider and vsformac. |
That error code means "The executable contains an invalid signature." Please check your project file and see if there are any entries turning code signing off: <EnableCodeSigning>false</EnableCodeSigning> and then remove those lines. |
no, nothing like that
|
@KSemenenko can you get a binlog for a build that won't deploy to the device? Make sure to clean the project first, so the build doesn't skip steps we might want to see in the build log. |
@rolfbjarne let me try |
logs.zip Build output:
Deploy to device:
Application output:
In my config I selet this CodesignProvision: <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<CodesignKey>Apple Development: Konstantin Semenenko (AAAAAAAAA)</CodesignKey>
<CodesignProvision>iOS Team Provisioning Profile: com.my.app</CodesignProvision>
</PropertyGroup> this CodesignProvision getnreated by xcode, and xcode able to run test app with the same bundleid on my device. |
Do you have any custom entitlements in your MAUI app (i.e. what's the contents of the Entitlements.plist file)? |
I have this @rolfbjarne Entitlements.plist
|
@KSemenenko does the app install & launch on device if you remove that |
Hello, I have the same problem, and if I remove these lines, the project is start |
@KSemenenko the value for |
Hi @Kremed. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Can we close this issue? |
Sorry, we had to switch from MAUI to Xamarin and then to ReactNative and give up MAUI/Xamarin. But for our problem, I changed it to develop but it didn't help.
I can see from the log that despite the fact that I run VS for Mac on the device thinks that it is a build simulator The Xamarin project also runs fine on the device. |
Good catch, I'm not sure what's happening here. Adding this to the csproj (for all configurations, not just Release), should work around it: <PropertyGroup>
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
</PropertyGroup> can you try that and confirm if it works? |
@rolfbjarne I can confirm, in VS for Mac preview, after I removed aps-environment build is working. |
This error is caused by missing required certificates which can be created on the account of Apple developer. |
I have exactly the same issue but for xamarin app, so it must be a VS issue |
after updating Microsoft Visual Studio 2022 to Version 17.4.4 I did not face this issue again.✅ |
Description
I'm trying to Debug my app on a physical (iPhone X with iOS 16.2), from Visual Studio for Mac 2022 with Xcode 14.2.
The application is installed to my phone, but the icon does not appear, and I still cannot launch the application.
- the application runs normally on a Simulator (iPhone 14 with IOS 16.2)
- the application runs normally on the same Physical (iPhone X with iOS 16.2) when it installed from TestFlight
When I click on the application icon on my IPhone :
unable to install [APP NAME] this app cannot be installed because its integrity could not be verified
I also get these logs from Visual Studio for Mac :
Steps to Reproduce
1 - Create New MAUI APP
2 - Install Xcode 14.2
3 - Debug on iPhone X - IOS 16.2
Link to public reproduction project repository
.
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
IOS 16.2
Did you find any workaround?
I have added a device to the list of devices in the developer account from Apple, but without any benefit
Relevant log output
The text was updated successfully, but these errors were encountered: