Build for Distribution on Xcode 4.0.2

Hello all,

I am trying to build my app for Ad-Hoc Distribution so that we can put the app on a client’s iPod. After reading the tutorial I built the app for distribution and was given a strange error.

ld: warning: directory not found for option '-L"/Users/neilmonday/Desktop/App/App/../Assets/Editor/Mobclix"'
ld: warning: directory not found for option '-L"/Users/neilmonday/Desktop/App/App/../Assets/Editor/Admob"'
ld: warning: directory not found for option '-L"/Users/neilmonday/Desktop/App/App"'
ld: warning: directory not found for option '-L"/Users/neilmonday/Desktop/App/App/Libraries"'
ld: library not found for -liPhone-lib
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

The strange thing is that these directories are the actual paths that are on my system. So, I am confused as to why it is complaining about the directory not being found. When building the normal ‘Unity-iPhone’ target, everything goes smoothly(except for the “Apple Mach-O Linker Warnings” that it seems everyone else is getting). Any help is greatly appreciated.

Xcode 4.0.2, Unity 3.3.0f4, iOS 4.3.3

You can not use iOS 4.3 SDK with unity, apple will automatically reject it.

You must use the 4.2 SDK with XCode 3.2.6

Does Xcode 3.2.6 have 4.2? I thought 3.2.5 was the last to have 4.2.

I am now getting an error with my Prime31 Mobclix/AdMob plugins. I am using Xcode 3.2.5 now, and building for 4.2.

Question for you. Why would they reject anything if built with 4.3 SDK? Specific reason? Can you elaborate? I am using Xcode 3.26 and SDK 4.3 and build is working fine. So I am curious about your statement.

Neilmonday,

you’ll have to change access rights on some files in your project directory. issue a chmod r+x on each ‘PostProcess*’ in Assets/Editor directory.