Xamarin - When try to deploy the build never ending - ios

I'm developing xamarin application for both IOS and Androaid, when I'm try to publish the Ios appliaction to my iphone the build never ends and no error appear, I tring to upgrade my Xcode but this didn't help.
When I'm using the IOS simulator everything works fine, the build ends and the app run as expected. I tried all the solutions that I found on the internet but none of them help.
Is anybody encounter this problem and have solution for this issue??
enter image description here

Xamarin frameworks are updated as latest stable version on both of Visual Studio and MacOs?
Did you accept Apple New License Agreement on your apple account?
You can check logs. (Help->Xamarin->Open Logs)

Related

Xamarin.iOS does not support running or debugging the previous version of your project

I've been trying to fix this issue for 3 hours and nothing. My entire google search looks purple and there is no solution. This error just keep popping up no matter what I do.
Tried adding a new iOS project.
Tried creating a completely new project. Same issue.
I've got an iPad plugged in externally with a USB type C cable to my laptop and I have set up all the developer requirements from apple to be able to access my device via visual studio.
Updated the iPad to the latest iOS version 16.1.1 installed iTunes from the Microsoft store and I can see my device as an optional device to deploy my app too.
Windows 10
Visual Studio 2022
I've got a mac mini to test using Simulator but I want to test this on a real device not a Simulator. Works fine on Simulators but not on real device while plugged into Windows.
There is no more information I can provide with the error because I myself do no get more to work with either.
Many Thanks in Advance
Image of the .iOS/bin/iPhone/Debug. There are also country-specific directories above the files.

iPad Crashes on Start Up Using Xamarin.Forms

I have been trying to test and debug on my iPad but I have not been able to get it to work. I develop on a PC and remotely build to a Mac onto an iPad Pro with iPadOS 15.2.1. It works fine when I build to a physical iPhone 11 with iOS 15.1. I even get it to work on an iPad Pro emulator. I went through the entire documentation on Microsoft and that was no help. I attached a YouTube video of my issue to help better illustrate the problem.
My iPad is provisioned for development on my Apple Developer Account.
I have tried placing breakpoints before the Forms.Init in the AppDelegate.cs and it doesn't reach that point. It does, however, reach my launch screen before it crashes.
I have also created a quick project in Xcode with the same bundle Id and the quick project runs as expected.
I am using Xcode 13.2.1 and Xamarin.Forms 5.0.0.2337.
Thanks for any help in advance.
Click here to see the issue
This is a known issue which reported here : https://github.com/xamarin/xamarin-macios/issues/9938 .
The possible workaround is
Add --weak-framework SensorKit to the additional mtouch arguments.
Switch linking option between Don't Link and Link Framework SDKs Only .
As per the same github comment shown above the statement the mtouch arguement --weak-framework=SensorKit.framework/SensorKit worked for me instead of --weak-framework SensorKit
What I had to do to work around this was set the deployment target lower (in my case 9.0) in my info.plist.

Rider Xamarin iOS error "application bundle was not generated after deployment"

I'm trying to switch from VS for Mac to Rider. My Xamarin.Forms project compiles and deploys on VS for Mac on both iOS and Android. Now I've opened the project in rider and it works great for the Android app, but when I try to run the iOS app, I get this error (after a successful build):
Application bundle was not generated after deployment
I've tried clean & rebuild, but to no avail.
Any ideas?
This happened to me today on Mac OS with the release of XCode 12.0, So what fixed it for me was to TOTALLY uninstall XCode and re down the last version I had installed, V11.6 from apple developers site https://developer.apple.com/download/more/?&name=Xcode. After that Rider will now run the iOS simulator as normal.
I guess the lesson learned is to not just update XCode until a few weeks, because I think Jetbrains need to catch up and release a newer version that works with the newer version of XCode. Of course if you need to test your app with the latest new version of iOS, then I guess you can still use VS for Mac as that still worked fine for me, but I need Rider to code, VS just doesn't do it for me at the moment
Update:
I upgraded to XCode 12 today (3/10/2020) and all seems to be working fine..
Another possible work around if it doesn't work maybe: youtrack Jetbrains
Sorry, this is a known issue with the latest release (2018.1). Already fixed and waiting to be made public as part of 2018.1.1 later this month. The only current workaround that I know is to revert to 2017.3.
Tested today.
Download the last released version directly from their website.
Now is launching iOS devices.
Rider 2.2.4
This now works for me in the 2018.2 EAP build.
Make sure you select iPhoneSimulator for your platform type under your configurations.
If you don't, you may also get the Application bundle was not generated after deployment message.
source

error HE0003: Could not load the framework 'CoreSimulator' :not found

I want to develop crossed based apps and chose the xamarin platform, but when I start my visual studio and try to run the hello world application, only the android emulator is running well. If I try the iOS emulator, it gives me this error
error HE0003: Could not load the framework 'CoreSimulator' (path:
/Applications/Xcode.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/CoreSimulator):
not found.
I am working on a MacBook and my XCode is up-to-date, so I really don't know the problem
I also ran a XCode hello world project and there the emulator reacts well.
It took me a couple hours but I got mine working after being in this state. It was a two step process.
First, I updated Visual Studio for Mac to all the latest versions.
Then, per this thread, I used VS4M to create a new Xamarin Forms project and run it.

Appcelerator application throwing app.js not found on device

Recently I have upgraded all my iOS and Appcelerator kits to latest versions, and since then I have problems while preparing archive / builds.
Initially the app was throwing error on simulator but I found a way to resolve this.
Plz note I am using Xcode instead of Appcelerator for building archives
The steps I took to run the app successfully in simulator...
1. Xcode->Preferences->locations
2. Derived Data -> Advanced -> Custom: Relative to Workspace
3. Now build in Xcode it should not have that problem.
Now build is working fine in simulator, but I can still see app.js not found error on the device (I build the archive and installed via iTunes)
Thanks in advance... People having experience in using Xcode 7 may reply to this in a better way.
This is an known issue:
https://jira.appcelerator.org/browse/TIMOB-19818
Please use Appcelerator's JIRA to report and track bugs.
And as people have commented, you should not actually need to build form Xcode as the CLI and Studio will do this for you via the Xcode command line.
My issue was because we were using camelCase as the project name "I think!!!"

Resources