Hi... I'm getting errors from XCode when I try to export a Unity project (which I have successfully published Previous to Unity 3.5 - with ver. 3.4 - to iPhone and also the Simulator)
There are 8 errors - I've tried starting a brand new Build, Quit/Restart XCode a few times - and turned on Symlink Unity Libraries - but no success...
Anyway - can anyone tell me what I need to adjust? It's referenceing VIDEO, so there is a chance I have an old video-texture based player floating somewhere in the files - will search and see if I can remove it - but in the meantime- can you take a look and see if some of the other errors here can be fixed?
Appreciated Much! Sincerely, DJKR
Here is the FULL set of (x8) errors:
ld: warning: directory '"/Users/djkr/MCTG(iPHONE5)/Libraries"' following -L not found
"_AVCaptureSessionPresetLow", referenced from:
"_OBJCCLASS$_AVCaptureVideoDataOutput", referenced from:
"_OBJCCLASS$_AVCaptureSession", referenced from:
"_AVCaptureSessionPreset640x480", referenced from:
"_AVCaptureSessionPreset1280x720", referenced from:
"_OBJCCLASS$_AVCaptureDeviceInput", referenced from:
"_AVCaptureSessionPresetMedium", referenced from:
"_OBJCCLASS$_AVCaptureDevice", referenced from:
ld: symbol(s) not found
collect2: ld returned 1 exit status
I got the ANSWER!
I'm answering my own question after several failed attempts...
TO FIX UNITY 3.5 Problems exporting to iOS (to XCODE) - You may want to try checking/doing the following:
1) I was using XCODE 3.2.5 (LoL)... so: DOWNLOAD XCODE 4.2 (Depending on your system - make sure you have 10.6 or higher)
DO NOT INSTALL XCODE 4.2 YET... FIRST
2) Upgrade your Mac's System Software (I tried installing, and got INSTALLATION FAILED - I didnt have an updated system (LoL2) )
3) INSTAL XCODE 4.2 (and Restart after the install)
4) TRY IT EXPORTING WITH UNITY 3.5 to your new XCode after Restarting/Upgrading... You might want to make sure when you BUILD AND RUN you project - that you: a) first USE A NEW Build NAME/FOLDER for your EXPORT (or REPLACE the previous Attempt) b) second make sure that 'Symlink Unity Libraries' IS CHECKED! (in the BUILD SETTINGS)
GOOD LUCK! Hope this helps... it took me a while to do all the Upgrading, Restarting, Builds, etc... so give yourself about 1-4 hours, because it depends on how 'old' (not upgraded) your system is....
The other thing which can help is to Clean the build in XCode. This is because recent versions of Xcode will treat a project at the same path as sharing the same intermediate object data in its temp directory. When Unity completely replaces an existing project, XCode can still be using an old object file.
This is one of the reasons why the tip to use a new build folder name from Kris works, but even if you delete the folder and recreate it from Unity, XCode may need that Clean before it will build the project properly!