Hi, I’m new to Unity and I thought a good place to start (after reading the Basics) would be to download a sample project (e.g. TunnelRunner) and Build and Run it. But I’m getting an error in XCode. Can anyone tell me why I get the following:
Building target “Unity-iPhone” of project “Unity-iPhone” with configuration “(null)” — (1 error)
Checking Dependencies
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6).
No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=i386, VALID_ARCHS=armv6).
Build failed (1 error)
Any help is much appreciated. Thanks.
you try to build it for the simulator which is not possible.
Unity will only compile to device.
Thank you. I see that in XCode, ‘Simulator’ was selected. I changed it to ‘Device’, but I receive a new error: “No Provisioned iPhone OS Device is connected.”
I’m guessing this may be because I have not used XCode since updating my iPhone to OS 3.0. Is it necessary to re-provision your iPhone when you update the OS?
You can check if it is enough to reenable it for development in the origanizer.
Potentially its enough, but yes at worst you need to create new provisions.
Also don’t forget to set the provision in the xcode project settings.
I downloaded SDK 3.0 and thought that would correct the problem. But now I get the following error in XCode:
File: /SourceCache/iPhoneXcodePlugin/iPhoneXcodePlugin-155.2/XCRemoteIPhone_connect.m
Line: 1035
Object: XCRemoteIPhone:0x02dd2ea0
Method: _willExecuteApplicationBackgroundInstallComplete:didInstall:
Assertion failed: [remoteExecutable installedPath]
I’m not sure why ‘remoteExecutable’ is referenced. I have my iPhone connected via USB. I thought Unity’s remote feature was for Wifi.
Have you ever seen this error before?
thats right, the remote is through wifi (disable bluetooth, os3 breaks something on that end as bluetooth is kind of missinterpreted as wifi), only the installation of the app is through usb.
I don’t understand. Are you recommending that I disable Bluetooth? Bluetooth is already disabled on my iPhone.
that was the idea yes if you get errors while running.
if you get errors during the build run step then I would do the following:
Check if you can build and run the xcode sample applications.
if this is not the case then the provision / certificate setup is incorrect or the whole xcode and iphone sdk install is messed up.
No, I’m able to build run XCode sample projects from iPhone SDK 3.0 just fine. The only problem appears to be when I attempt a build run from Unity.
Does anyone know the cause of this error? Any help is greatly appreciated.
File: /SourceCache/iPhoneXcodePlugin/iPhoneXcodePlugin-155.2/XCRemoteIPhone_connect.m
Line: 1035
Object: XCRemoteIPhone:0x02dd2ea0
Method: _willExecuteApplicationBackgroundInstallComplete:didInstall:
Assertion failed: [remoteExecutable installedPath]