Problem on xcode 4.2 with armv6 device

Hello, I have a problem to build my app on my iPod Touch 2G, I’ve read a lot of thread on how to build these ipod, but all did not work. with a normal xcode application and in the Iphone simulator with an unity app work perfect.

when I tried to build a unity application, the build was successful but on the ipod nothing happens and in xcode it said "Finished running (app name) on ipod (ipod name)

can anyone help me?

this is my setup on xcode

The “architectures” which is set to i386 sounds wrong to me. It should probably be armv6.
i386 is the CPU architecture of mainly used by intel and amd for desktop computers - not iOS devices!

i tried but it failed, 28 errors

ld: warning: directory not found for option ‘-L"/Users/robertsolero/Desktop/test/test"’
ld: warning: directory not found for option ‘-L"/Users/robertsolero/Desktop/test/test/Libraries"’
ld: warning: ignoring file /Users/robertsolero/Desktop/test/test/Libraries/libiPhone-lib.a, missing required architecture armv6 in file
Undefined symbols for architecture armv6:
“__Z29UnityHasRenderingAPIExtensionPKc”, referenced from:
__Z8InitGLESv in iPhone_GlesSupport.o
“__Z20UnityFinishRenderingv”, referenced from:
__Z24HandleOrientationRequestv in AppController.o
“__Z17UnityInputProcessv”, referenced from:
-[AppController Repaint] in AppController.o
“__ZN16KeyboardOnScreen4InitEv”, referenced from:
-[AppController startUnity:] in AppController.o
“__Z21UnitySendTouchesMovedP5NSSetP7UIEvent”, referenced from:
-[EAGLView touchesMoved:withEvent:] in AppController.o
“_gDefaultFBO”, referenced from:
__Z17CreateSurfaceGLESP15EAGLSurfaceDescPv in iPhone_GlesSupport.o
__Z35CreateSurfaceMultisampleBuffersGLESP15EAGLSurfaceDesc in iPhone_GlesSupport.o
__Z23AfterPresentSurfaceGLESP15EAGLSurfaceDesc in iPhone_GlesSupport.o
“__Z12UnityCleanupv”, referenced from:
-[AppController applicationWillTerminate:] in AppController.o
“__Z15UnityPlayerLoopv”, referenced from:
__Z24HandleOrientationRequestv in AppController.o
-[AppController Repaint] in AppController.o
“__Z25UnitySetScreenOrientation17ScreenOrientation”, referenced from:
__Z24HandleOrientationRequestv in AppController.o
-[UnityViewController didRotateFromInterfaceOrientation:] in AppController.o
“__Z22UnityCaptureScreenshotv”, referenced from:
__Z25PreparePresentSurfaceGLESP15EAGLSurfaceDesc in iPhone_GlesSupport.o
“__Z33UnityIsCaptureScreenshotRequestedv”, referenced from:
__Z25PreparePresentSurfaceGLESP15EAGLSurfaceDesc in iPhone_GlesSupport.o
“__Z22UnityUseOSAutorotationv”, referenced from:
-[UnityViewController shouldAutorotateToInterfaceOrientation:] in AppController.o
“__Z30UnityGetDesiredMSAASampleCounti”, referenced from:
__Z23AfterPresentSurfaceGLESP15EAGLSurfaceDesc in iPhone_GlesSupport.o
“__Z24UnitySetInputScaleFactorf”, referenced from:
__Z13CreateSurfaceP8EAGLViewP15EAGLSurfaceDesc in AppController.o
“__Z29UnityKeyboardOrientationStep1v”, referenced from:
__Z24HandleOrientationRequestv in AppController.o
“__Z29UnityKeyboardOrientationStep2v”, referenced from:
__Z24HandleOrientationRequestv in AppController.o
“__Z20UnityInitApplicationPKc”, referenced from:
-[AppController startUnity:] in AppController.o
“__Z31UnityRequestedScreenOrientationv”, referenced from:
__Z20ShouldHandleRotationP17ScreenOrientation in AppController.o
-[UnityViewController shouldAutorotateToInterfaceOrientation:] in AppController.o
“__Z10UnityPauseb”, referenced from:
-[AppController applicationDidBecomeActive:] in AppController.o
-[AppController applicationWillResignActive:] in AppController.o
“__Z18UnityDidAcceleratefffd”, referenced from:
-[AppController accelerometer:didAccelerate:] in AppController.o
“__Z21UnitySendTouchesEndedP5NSSetP7UIEvent”, referenced from:
-[EAGLView touchesEnded:withEvent:] in AppController.o
“__Z21UnitySendTouchesBeginP5NSSetP7UIEvent”, referenced from:
-[EAGLView touchesBegan:withEvent:] in AppController.o
“__Z31ConvertToUnityScreenOrientation22UIInterfaceOrientationP18EnabledOrientation”, referenced from:
-[UnityViewController shouldAutorotateToInterfaceOrientation:] in AppController.o
-[UnityViewController willRotateToInterfaceOrientation:duration:] in AppController.o
-[UnityViewController didRotateFromInterfaceOrientation:] in AppController.o
“_gEnableGyroscope”, referenced from:
__Z19RegisterMonoModulesv in RegisterMonoModules.o
“__Z21UnityParseCommandLineiPPc”, referenced from:
_main in main.o
“__Z24UnityGetTargetResolutionv”, referenced from:
__Z13CreateSurfaceP8EAGLViewP15EAGLSurfaceDesc in AppController.o
“__Z25UnityIsOrientationEnabled18EnabledOrientation”, referenced from:
-[UnityViewController shouldAutorotateToInterfaceOrientation:] in AppController.o
“__Z25UnitySendTouchesCancelledP5NSSetP7UIEvent”, referenced from:
-[EAGLView touchesCancelled:withEvent:] in AppController.o
ld: symbol(s) not found for architecture armv6
clang: error: linker command failed with exit code 1 (use -v to see invocation)

ok solved! just a little problem on unity3d build thanks all

You should just need to add armv6 and armv7 to your architectures, it’ll look like this:

Same for “valid architectures” - it looks like yours is changed from the default? Not sure where that i386 came from.