I have been trying to test my Unity3D application on iPhone, and that requires me to open it through Xcode in order to run it on my iPhone device. However, I keep getting the same error message once I hit the Run button on Xcode. I have checked all the player settings on Unity, and also went through a lot of answers of similar questions and all of them did not help me solve the issue. Please help me find a solution as I cannot proceed with my work without it..
Here is the detailed error message:
ld: library not found for -liPhone-lib clang: error: linker command failed with exit code 1 (use -v to see invocation)
Final edit:
The OP problem was opening the xcode project from a temp file.
If anyone have clang problems, maybe some of this stuff below can help.
Last Try
1- delete the xcode project folder and build again? (just build. and not "build and run) run inside xcode)
2- In Building Settings, if the Symlink Unity Libraries is checked, uncheck it!
Extras:
1- Clean before every new build.
What was tested and didn't work
Test 0
Folder views, tap blue project icon: Build Settings > Build Options > 'Set Bitcode Enabled' to NO
Test 1
Keep everything and try adding:
$(SRCROOT)/Libraries/Plugins/iOS and remove quotation for: $(SRCROOT)/Libraries
Test 2
change your target for deployment for iOS 9.0
Test 3
1- In Xcode's project navigator, press the blue top-level project icon.
2- Click on your target, then the General tab.
3- Remove "libiPhone-lib.a" from the Linked Frameworks and Libraries.
4- Now re-add "libiPhone-lib.a" to the Linked Frameworks and Libraries.
5- Build and Run your Xcode project from Xcode.
Test 4
Update xcode to 7.1.1
Test 5
"If you previously was deploying project to Simulator, then you need to switch "SDK Version" from "Simulator" back to "Device" in Unity Player Settings and re-export Unity project."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With