I'm trying to follow the instructions here for getting Nu to run on
the iPhone:
http://floatopian.com/~reddaly/nu-iphone.html
But when I try to run the example in the simulator, it complains, I
think because the libNu.a is the wrong architecture. Here's the full
error:
Building target “nuPhone” of project “nuPhone” with configuration
“Debug” — (2 errors)
cd /Users/pbarry/Spikes/nuPhone
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/bin:/Developer/usr/bin:/Library/Frameworks/
Python.framework/Versions/Current/bin:/opt/local/bin:/opt/local/sbin:/
usr/local/bin:/usr/bin:/bin:/usr/sbin/:/sbin:/Users/pbarry/bin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
gcc-4.0 -arch i386 -isysroot /Developer/Platforms/
iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator2.2.1.sdk -L/
Users/pbarry/Spikes/nuPhone/build/Debug-iphonesimulator -L/Users/
pbarry/Spikes/nuPhone -F/Users/pbarry/Spikes/nuPhone/build/Debug-
iphonesimulator -filelist /Users/pbarry/Spikes/nuPhone/build/
nuPhone.build/Debug-iphonesimulator/nuPhone.build/Objects-normal/i386/
nuPhone.LinkFileList -mmacosx-version-min=10.5 -all_load -ObjC -ledit -
lffi -framework Foundation -framework UIKit -framework CoreGraphics -
lNu -lpcre -o /Users/pbarry/Spikes/nuPhone/build/Debug-iphonesimulator/
nuPhone.app/nuPhone
ld warning: in /Users/pbarry/Spikes/nuPhone/libNu.a, file is not of
required architecture
Undefined symbols:
"_NuInit", referenced from:
-[nuPhoneAppDelegate applicationDidFinishLaunching:] in
nuPhoneAppDelegate.o
".objc_class_name_Nu", referenced from:
literal-pointer@__OBJC@__cls_refs@Nu in nuPhoneAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_NuInit", referenced from:
-[nuPhoneAppDelegate applicationDidFinishLaunching:] in
nuPhoneAppDelegate.o
".objc_class_name_Nu", referenced from:
literal-pointer@__OBJC@__cls_refs@Nu in nuPhoneAppDelegate.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (2 errors)
Can you run Nu on the simulator?