Issue with Xcode

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:
Code Block
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:
Code Block
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:
Code Block
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)


Answered by OOPer in 673083022
Thanks for clarification.
So, you are trying to build and run the Xcode project created by Visual Studio (for Mac) / Xamarin.

The error you mentioned would happen when the project is not properly made for the version of Xcode you are using.
It is a problem of Visual Studio / Xamarin, not a problem of Xcode.

Visual Studio is not a tool of Apple's and you should better find a community site or a supporting site of Visual Studio / Xamarin.

but when I tried doing the same in Xcode,

Did you build a new project or tried to import the VS ?

Creating a new project works flawlessly, no issue.
What sort of project are you using? Xamarin? Unity? Or something else?
First of all, thank you for replying to me. I import the project from VS, and it's a Xamarin project. The exact template can be found in iOS > App > General > Single View App, when creating a new solution in VS.
Edit: creating a project in Xcode works, and I can build it without any problems, both to my real phone, and to a simulated one.
Accepted Answer
Thanks for clarification.
So, you are trying to build and run the Xcode project created by Visual Studio (for Mac) / Xamarin.

The error you mentioned would happen when the project is not properly made for the version of Xcode you are using.
It is a problem of Visual Studio / Xamarin, not a problem of Xcode.

Visual Studio is not a tool of Apple's and you should better find a community site or a supporting site of Visual Studio / Xamarin.
Thank you for answering me! I will then ask on another forum.
Issue with Xcode
 
 
Q