-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Unable to deploy only myApp to iOS device #16835
Comments
@Varmod I'd start by investigating the codesigning error for remote devices, because if the problems is around your signing identity/provisioning profile, it would also affect deploying to local devices. We'll need a build binary log to investigate this problem. You can get one using the Project System Tools extension for Visual Studio. You can follow the steps decribed here. Please record and share the binlog after reproducing the remote codesign problem. Also looping @rolfbjarne in case he thinks we need anything else. |
@emaf I only found the same information as I already posted
|
A binlog for both the failing project, and the working (blank) project would be great. |
Hi, I changed the extension from .binlog to .log so github would allow me to upload the file. binlog of MyApp failing: or here's also a zip: |
Those binlogs didn't quite contain the information I was looking for :/ Does the project build correctly from the command line? If not, could you get a binlog from a command-line build (it will contain more information than when built from inside VS)? |
No, it doesn't build from the command line either. It fails with the same error, but this time it's not complaining about the As for the binlog, I wasn't able to capture it. VS does pick up that there is a solution build running but it never finishes. |
I've removed a couple more of my file and now it's failing on |
When you're building from the command line it's much easier: just add "-bl:msbuild.binlog" to the command line, and the binlog will be stored in the current directory. |
Ah, perfect. Here's the binlog: |
This is all rather puzzling, I don't understand what's going on. Would it be possible for you to zip up and attach the app bundle it's trying to sign (from the Mac)?
|
yeah, sure thing: I'm going to try to port the app into a new template and see when (if) it's going to break. |
Hi @Varmod. 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. |
I was able to reproduce the issue. My database file is the source of the problems, once it's added to the project the project won't codesign. I'm getting the same error as first time
Database: Signs.zip |
The problem is that there's a subdirectory named "Resources". If you rename this directory to anything else, signing works fine. |
That indeed fixes my deployment issues. Thank you I don't understand then why the default maui template has a Resources folder. |
We have some build logic that will usually put content from the Resources folder from your project in the root directory of the app bundle. For some reason that logic isn't kicking in for your project. In any case I'm closing this since it seems it's working for you now. |
Description
I'm working on a app, and during development I've deployed to my device at least a 50 times. Then 4 days ago something broke and no matter what fix I've tried to apply I couldn't get it to work.
Normally I use the setup that I develop on my windows machine, and I have my iOS device connected to my Mac and deploy to remote device.
Then on the unfortunate day I've received a codesign error that it was unable to codesign one my assets a video. No problem, I removed it, and then a couple more untill codesign raised the stakes.
At first I thought no big deal, I've seen it a couple times I'll figure out some other way to fix it. But I failed.
I've tried to change the setup by connecting the iOS device to my windows machine and deploy locally. But I started receiving the following error take from xamarin logs:
As a sanity check I've decided to try deploying a blank Maui app with both approaches and both times it deployed smoothly.
Please help me.
I wanted to provide more information on the codesign failtures but I wasn't able to find any place where it's logged.
Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
7.0.92
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: