Can't compile iOS-App in Ad-Hoc mode (Xamarin.iOS) - ios

So basically I'm following this official Xamarin guide to release my app in the AppStore.
However no matter what I try (changing signing profiles, different build options) the solution-process crashes every time after 1-2 minutes with different errors that don't explain what exactly went wrong (signing error, user aborted?!, etc.).
After the error is shown I always have to reconnect to the Mac.
What could be the problem?
EDIT:
Tool exited with code: 1. Output: CSSM_SignData returned: 800108E6
/Users/metadokentwicklung/Library/Caches/Xamarin/mtbs/builds/mWIDAS_iOS/806c20450998d745a5c8df0e4928100f/bin/iPhone/Ad-Hoc/mWIDAS_iOS.app:
errSecInternalComponent mWIDAS_iOS
I tried the publish profiles (Ad-Hoc,AppStore,automatic) and provisioning profile.

Okay solved the problem myself a few days ago. Dumb mistake on my behlaf.
I use the same monitor for the Mac Mini and the Windows PC so I didn't see the popup on the Mac prompting me to accept the use of the keyfile.
After I agreed to it everything worked like a charm.

I resolved this issue by:
Cleaning my solution
Closing VS4Mac
Shut down Macbook Pro
Start Macbook Pro
Reopen my solution
Build iOS head project (I am working in Xamarin.Forms)
And it built successfully this time. I am noticing lots of issues from Windows VS are creeping into VS4Mac by each update. Not sure why this was happening but that resolved my issue

Related

Deploying Xamarin.Forms app to iOS: MT1006 EOF Error (error: 0xe800000e)

I am trying to run a Xamarin.Forms app on my iPad and getting the following error:
Launch failed. The app 'AppIOS' could not be launched on 'My iPad'. Error: error MT1006: Could not install the application '/Users/mycompany/Library/Caches/Xamarin/mtbs/builds/AppIOS/someguid/bin/iPhone/Debug/my.app' on the device 'My iPad': EOF Error (error: 0xe800000e).. Please check the logs for more details.
This app has previously ran fine on the same device. The iOS build and deployment process seems very unstable so it often takes multiple attempts so I'm used to having to restart Visual Studio, the Mac it builds on and the iPad and generally wasting a whole lot of time. I have restarted everything involved here multiple times but this error persists. I have checked the device logs and there are no related messages or even any messages at the appropriate times.
I'm using Visual Studio 2017 (15.9.4), Xamarin.iOS and Xamarin.Mac SDK (12.2.1.12), building on a Mac Mini running macOS Mojave and XCode 10.1, deploying to an iPad Air (A1474) running iOS 12.1.1. As far as I'm aware there have been no updates to any of these since I last had it working. The UWP version of the app runs fine.
I can find a lot of MT1006 issues but none with EOF Error (error: 0xe800000e) and I can find no information about this specific error at all. Can anyone enlighten me on what this means?
Sounds overly simple, but I just had this issue and I solved it by restarting the iOS device and redeploying it. Specifically, I was deploying to an iPod 6th Gen and I held the power and home buttons until the screen turned black, this is more of a hard restart. Then let the device reboot and try deploying again.
NOTE: Don't hold the power and home buttons too long, because if you do, the iPod will go into a factory reset restart.
Try pulling up the device in Xcodes' devices tab. I did and realized the device had an error within the tab. I then disabled the "Connect via network" button, then things started to work properly.
I am agree, Xamarin build environment on iOS part is very buggy.
In any case of unknown error in such config: VS<->MAC<->iOS Device try these steps:
Try to switch Off and On Mac wifi.
Reconnect VS to Macbook and Macbook to IPhone.
Delete bin and obj folders on Macbook
Check your PList and Entitlements file(as example wrong aps-environment setting can cause installing errors)
Check your sign project settings
5a. Check your provisoning profile term
unistall application from ios
rebuild and run project again
I'll appent new lines in case i'll remember something else.
What you described happened to me and solved by 1,2,7

Command /bin/sh failed with exit code 1 (Phone only, works on SIM)

I've been trying to instal a few apps that I've been developing to my handset. A few of these apps now give me this infamous error
Command /bin/sh failed with exit code 1
This error ONLY happens when trying to install the app to a physical device, everything works perfectly on the simulator. I've googled a solution to this problem and nothing really helps, a lot of people suggest only running shell scripts at launch. This fix doesn't work for me as it still won't install on the phone and then breaks the simulator version of the app.
I've tried clearing the temp files in derived data and that makes no difference.
I've also checked the signing off the app. I'm using both my personal account and a paid account so signing should not be an issue.
Anyone have any suggestions? its really starting to bug me now!
Seems to be related to permissions on the mac. When you restart xcode & your mac it should prompt you for permissions to access (I think its keychain but not 100%). I had been using an office phone with an unknown password and had just ignored it causing none of my apps to load onto any device.
After checking my certificates, restarting Xcode several times, changing file permission with attr command and so on, all of these couldn't solve that error.
I was like going mad, until I saw there was an update for my macOS (High Sierra), after updating (and drinking coffee), I successfully compiled my project again. It than raised another problem, but I fixed that here: https://stackoverflow.com/a/48538225/1012775
So, just because I updated my OS, my problem was solved. Yes it took me half a day.
If other solutions didn't work, try this one, it worked for me.

Visual Studio 2015 / Xamarin, Debug not working: an error occurred while executing MTouch

I'm trying to get an answer on here before uninstalling this software and developing straight on Mac after spending 4 hours trying to figure this out. I just installed all these programs on both machines (VS15/Xamarin on Windows 10, Xcode/Xamarin on iMac, both on the same network). Mac Agent is connected, I have a Developer account on XCode, a device linked to my account, everything looks fine.
When I create a basic app (I don't even add a line of code, just a blank single view app) on XCode (iMac) and launch the simulator, it works just fine. I get the view of the device etc... When I do the same on my Windows machine, I can't debug. I get the error "The app could not be launched on 'iPhone SE iOS 10.2'. An error occurred while executing MTouch."
I looked all over the place searching for a solution. I removed the Entitlements.plist file, I also checked for updates on everything (as some suggested on StackOverflow). Nothing.
So I tried an Android app to see if that works and no issue there. I get the device I pick, shows a black screen because the app is empty, as expected.
If anyone can guide me before I uninstall this whole thing and code directly on a Mac, it would be greatly appreciated. Thank you!
Restarting Visual Studio and cleaning iOS project worked for me.

"failed to get to process -1"

i have this big problem with my iOS Developer (i guess).
Sometimes (every 2 or 3 times) when i run my app on my iPhone 5S it stops and the error "failed to get to process -1" appears. After that my iPhone is stuck and frozen and i have to reset it (Power + HomeButton). I searched through the web and found that it has something to do with the Code Signing.
Something like "Only use iOS Developer" and "code signing entitlements only for debug" i tried like every variant with this, but without success. It is kind of weird, because all the others with the same problem seem to have it all the time. My iPhone only gets stuck every now and then.
I have already reseted it to defaults and tried it again, no success. I deleted the Provisioning Profile and add it again, but again with no success.
It's a real pain.
Here is a screenshot of my settings that i used to use:
And here the error:
I did nothing, it just occurred and it happens in every project,
Can you guys help me? I am really tired of this problem and i am not able to find a solution.
I am running XCode 5.0.1 on the latest OS X Mavericks. On my iPhone 5S i have the latest iOS 7.0.3.
Thanks in advance!
Same problem here, seems related to xcode 5.0.1. Rolling back to 5.0.0 solved the issue.

Monotouch AMDeviceInstallApplication returned: 0xe8008018

I have recently installed iOS 6 beta on my device and updated to the latest mono develop release. Since this, I now get the following error when trying to deploy to my device, "Installation failed: AMDeviceInstallApplication returned: 0xe8008018" - Could not upload to the device.
I have tried other projects and get the same error. As far as I'm aware, there is no code signing problems - all appears fine in the log. It worked fine before I installed IOS6. I don't have another device with iOS 5 to test.
Any ideas as to why I am getting this error?
Thank you.
If you are using any non-standard names for the Xcode executables, check Xamarin's blog post on how to fix it:
http://blog.xamarin.com/2012/06/15/xcode-4-5-ios-6-and-mountain-lion/
Or even better, contact support#xamarin.com
I get this message once a year when my developer certificate expires on my build machine.
Yep my Macbook Pro is from 2010.
So just look in the iOS Developer console under Certificates. If it says you do not have one then you need to go through the process to create a new one. I also look in KeyChain to see if the one in there has a red X indicating it to be expired.
I hope this helps.

Resources