Xamarin.Forms.ios/Visual Studio build config bug? - visual-studio

I am working on a Xamarin.Forms project and I need to create multiple build configs for iOS and android and depending on the build config swap out all pictures in the project but that is not the problem.
The problem is I cant create new build configs for the iOS project, for android it works fine but the iOS project even has 2 empty build configs that I cant delete nor rename, it always says "unknown error" and I tried a lot of stuff but nothing helped.
Build config manager showing the 2 empty configs:
The error message that pops up when trying to delete or rename the empty configs:

Related

Xcode project with a certain Product name crashes at launch

After I finished my Xcode project (macOS app), I wanted to change its name, folder names and other stuff... Everything messed up and the project wouldn't build so I decided to save all the project files in a folder, create a new Xcode project and place the original files there.
So the new project builds completely fine, but it crashes at launch with this message
container_create_or_lookup_for_current_user(): 8
But the weirdest part is that even if I create an empty project but with the original product name/project name, Xcode won't run the app. Same error.
How can I solve this?
I cleaned the build folder, deleted Derived data, restarted pc.
UPD. When I edit scheme and set debug process as ROOT, app doesn't crash
Deleting old app folders in ~/Library/Containers fixed the issue.

Facing issue with gradle. Also Android Studio is blacking out the Build bundle/apk

After creating my first app, I thought to upload the app to Play Store. However, when I prepared files for upload, because I am using Flutter, I added all the requirements to the files. However, when I checked the build.gradle in the android directory, it shows the Can't Resolve symbols for Properties, GradleException, and FileInputStream.
Image for Gradle
Also, when I am trying to build apk via Build>Build bundle/APK, I found out that is been greyed out.
Image for Build Menu
After creating app before I saw this problem, I had the problem with uploading the app. Whenever uploading it responds with the error that it has been signed when in debug. However, I signed it using the key generated by Keytool.
Solution found!
Gradle isn't implemented for flutter yet. Let the errors be shown. Else using VS Code will help

After updating Xamarin and Xcode, failing to run app on iOS device

I recently updated Xcode and Xamarin and when I deploy my project to my simulator on iOS it works well. But when I however try to use my phone that has been working succesfully for many months now it does not work and I get this error in the log:
System.IO.FileNotFoundException: /Users/Carlos/Projects/Myproject/iOS/obj/iPhone/Debug/build-iphone8.1-9.3.2/ibtool-link/LaunchScreen.storyboardc/02J-Ip-oVM-view-Ze4-5b-2t2.nib does not exist
My bundle identifier matches my provisioning profile that I have made on apple.
I have tried to delete the obj and bin folders in the projectmap/mainmap (not the obj and bin-folders inside the iOS folder) but without any success. I have also rebuild the project and cleaned it but the problem still remains.
When I create a brand new project however it works. So it seems to be a problem with old projects only.
In the map on my old project I cannot even find "ibtool-link" and if I check the newly made project I just made i can see it there and other maps as well. Can I solve it by copying them over? Or is there a better solution?
Any ideas what it might be?
You might try the suggestions (I saw at least 2 different ones) in this post which are:
simply right click on the xib and open it in IB. I then turn around and close it in IB and that gets me past the error.
And
make sure 'Main Interface' empty in info.plist.
Remove Bin and Obj folder.
Also you might try deleting the build cache on your mac by going to /Users/<Your User Account Name>/Library/Caches/Xamarin/mtbs/ and then delete the folder that is the same name as your solution (there might be 2, one with iOS in the name, delete both). This will get recreated when you rebuild your solution.

Bitrise Xamarin build fails with message "No exportable output found"

I'm trying to setup my first custom Xamarin IOS build on Bitrise. i manage to have the sample app building. I tried to create a build for a custom IOS single page app and I'm getting the same error.
["\"/Applications/Xamarin Studio.app/Contents/MacOS/mdtool\"", "build", "\"-c:Debug|iPhoneSimulator\"", "\"tamtammeapp.sln\"", "\"-p:TamTamMe.IOS\""]
Xamarin Studio Build Tool
Loading solution: /Users/vagrant/git/tamtammeapp.sln
Loading projects ..
Building: TamTamMe.IOS (Debug|iPhoneSimulator)
generated_files: {"{AE5511D0-5224-4AC5-B25F-BDFB1851FB67}"=>{:app=>"./TamTamMe.IOS/bin/iPhoneSimulator/Debug/TamTamMe.IOS.app", :api=>"ios"}}
No exportable output found
I cannot figure out what I'm doing wrong. Any idea?
Thanks,
The step xamarin-builder is expected to generete platform specific archives (.APK file for Android, .ipa file for iOS, .pkg/.app for Mac), the error means building your project with given configuration:
platform: iPhoneSimulator
configuration: Debug
does not generate .ipa file.
Most of the times, platform: iPhone generates .ipa as output, so try to change the platform (but it depends on your project settings).
Check out your ios project settings by double cliking on your project, in the project navigator, select iOS Build tab in the Project Options menu, Under Code Generation & Runtime you can find Supported arhictectures, xamarin-builder step will generated .ipa for configuration-platform combination, where architecture is ARMx.

Renaming project in xCode 4 causes SIGABRT

I've renamed a project in xCode 4 by slowly double clicking the project name and then following the directions. I then Build and Run with no errors, but when I select a popover in the app simulator get a SIGABRT. This works fine in the original project. Other parts of the renamed app work OK. I've done a Clean and that doesn't help.
Are there other changes I need to make manually to rename a project?
This is usually caused by some forgotten value in the Build settings like old name for info file, app delegate etc ...

Resources