Compiling in Xcode fails
My first question on this forum and I hope someone can help.
I have used Unity 2018.3.12f1 (64-bit) and created some apps for iPhone (using XCode) without any problems. When the new update (Unity 2019.1 with the hub) was released I waited 5 months before updating but last week I updated. I have installed and am now running Unity 2019.1.4f1 (64-bit). The apps are working fine in Unity. The build process from Unity to iOS runs also without errors. I use option "Run in Xcode as - Release" and "Compression Method - Default".
But when I compile with Xcode (version 10.2.1) on my Mac I get a build failed. The error message is "Library not found for -libPhone-lib". This is really frustrating. I tried to find the solution online but no success. Please can someone give me tips, hints or even better a solution.
Ok, so I created a small project with Unity 2018.3.12f1 which I build for iOS and then tried to compile on $$anonymous$$ac (macOS $$anonymous$$ojave version10.14.5) and with Xcode (version 10.2.1). It gets the same error "Library not found for -libPhone-lib". I guess that the problem seems to be on $$anonymous$$ac and Xcode. I will continue to search for the answer. However I would be very grateful if anyone has had same (or like this) error and could point me in right direction.
Answer by vladde2000 · May 28, 2019 at 08:09 PM
I managed to solve this. In the Unity build folder there was the file which Xcode was referencing. Somehow Xcode could not find the file so I draged it from the folder to the reference. Don't know if this is an optimal solution but it solved my problem. I included a picture to show where in Xcode I dragged the file.