Hi!
I just started to learn to develop iOS apps in visual studio and Xcode. After making a simple app, I tested it in VS, and it successfully emulated an iPhone with my app, but when I tried doing the same in Xcode, I couldn't do it, neither virtually, nor with my own iPhone.
After this, I tried to run a blank app in VS and Xcode too, and the same thing happened.
The first error is:
Multiple commands produce '/Users/ottodarvas/Code/VS/myApp/myApp/obj/Xcode/2/DerivedData/myApp/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist':
1) Target 'myApp' (project 'myApp') has copy command from '/Users/ottodarvas/Code/VS/myApp/myApp/obj/Xcode/2/Info.plist' to '/Users/ottodarvas/Code/VS/myApp/myApp/obj/Xcode/2/DerivedData/myApp/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'
2) Target 'myApp' (project 'myApp') has process command with output '/Users/ottodarvas/Code/VS/myApp/myApp/obj/Xcode/2/DerivedData/myApp/Build/Products/Debug-iphonesimulator/myApp.app/Info.plist'
Then after looking it up, I found a solution, to remove the Info.plist file from Build Phases Copy Bundle Resources
After this, it successfully builds the app, but shortly after starting the simulator, I get another error:
Unable To Install “myApp”
Please try again later.
Bundle at path /Users/ottodarvas/Library/Developer/CoreSimulator/Devices/C576FDAC-9E24-4A45-BD24-86E7C194AAA5/data/Library/Caches/com.apple.mobile.installd.staging/temp.H6Fcwr/extracted/myApp.app has missing or invalid CFBundleExecutable in its Info.plist
I tried the same thing on a real device, and it said "Build Succeed", even though I got an error:
The file “myApp” couldn’t be opened because you don’t have permission to view it.
You don’t have permission.
To view or change permissions, select the item in the Finder and choose File Get Info.
I use an admin user, and I gave Xcode Full Disk Acces in the Preferences.
I am really confused, and I would appreciate some help!
(I use Xcode version 12.4, and Visual Studio version 8.9.7, on a MacBook Pro running Catalina)
Selecting any option will automatically load the page