OpenFeint 2.4.4 (failing to compile please help) [SOLVED]

I’ve gone through the tutorial documentation and added everything exactly like it says in the docs.

Basically setting it up in unity, building, opening it in xcode, making sure the frameworks are all there and making sure the prefix is in there - but I’m still not able to get it to compile!

I’ve tried compiling under 3.1.3, 3.1, 3.0 and also 2.2.1 and no joy with any of them

the errors below are from compiling on 3.1.3

Please help! Been pulling my hair out for hours trying to figure this out and for some lousy reason there doesn’t seem to be an OpenFeint forum :frowning:

Build Unity-iPhone of project Unity-iPhone with configuration Release

CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OpenFeint+Private.o OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm normal armv6 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch armv6 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -fno-objc-exceptions -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -mno-thumb -miphoneos-version-min=3.1.3 -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-generated-files.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-own-target-headers.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-all-target-headers.hmap -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-project-headers.hmap -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -I/Users/jbury/BearlyContained/BC_BuildMain/build/include -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/armv6 -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -include /var/folders/PU/PUzAjG-9FYeuAj6EH7-sC++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iPhone_target_Prefix-bgkgyxaihtvmfuctqcxlhfkaodxv/iPhone_target_Prefix.pch -c /Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm -o /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OpenFeint+Private.o

/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm: In function 'void -[OpenFeint(Private) _succeededBootstrapping:](OpenFeint*, objc_selector*, NSObject*)':
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:273: error: 'UIRemoteNotificationTypeBadge' was not declared in this scope
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:273: error: 'UIRemoteNotificationTypeSound' was not declared in this scope
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:273: error: 'UIRemoteNotificationTypeAlert' was not declared in this scope
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: error: 'UIRemoteNotificationType' was not declared in this scope
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: error: expected `:' before ']' token
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: error: expected primary-expression before ']' token
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: warning: 'UIApplication' may not respond to '-registerForRemoteNotificationTypes:notificationFlags:'
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: warning: (Messages without a matching method signature
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: warning: will be assumed to return 'id' and accept
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:274: warning: '...' as arguments.)
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/OpenFeint/OpenFeint+Private.mm:273: warning: unused variable 'notificationFlags'

CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFTableCellHelper.o OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm normal armv6 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch armv6 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -fno-objc-exceptions -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -mno-thumb -miphoneos-version-min=3.1.3 -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-generated-files.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-own-target-headers.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-all-target-headers.hmap -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-project-headers.hmap -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -I/Users/jbury/BearlyContained/BC_BuildMain/build/include -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/armv6 -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -include /var/folders/PU/PUzAjG-9FYeuAj6EH7-sC++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iPhone_target_Prefix-bgkgyxaihtvmfuctqcxlhfkaodxv/iPhone_target_Prefix.pch -c /Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm -o /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFTableCellHelper.o

/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm: In function 'objc_object* -[OFTableCellHelper initOFTableCellHelper:](OFTableCellHelper*, objc_selector*, NSString*)':
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm:82: error: 'UITableViewCellStyleDefault' was not declared in this scope
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm:82: warning: 'OFTableCellHelper' may not respond to '-initWithStyle:reuseIdentifier:'
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm:82: warning: (Messages without a matching method signature
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm:82: warning: will be assumed to return 'id' and accept
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/ControllerHelpers/TableCellHelper/OFTableCellHelper.mm:82: warning: '...' as arguments.)

CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/UIButton+OpenFeint.o OpenFeint/api/internal/Systems/NSCategories/UIButton+OpenFeint.mm normal armv6 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch armv6 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -fno-objc-exceptions -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -mno-thumb -miphoneos-version-min=3.1.3 -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-generated-files.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-own-target-headers.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-all-target-headers.hmap -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-project-headers.hmap -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -I/Users/jbury/BearlyContained/BC_BuildMain/build/include -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/armv6 -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -include /var/folders/PU/PUzAjG-9FYeuAj6EH7-sC++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iPhone_target_Prefix-bgkgyxaihtvmfuctqcxlhfkaodxv/iPhone_target_Prefix.pch -c /Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/NSCategories/UIButton+OpenFeint.mm -o /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/UIButton+OpenFeint.o

/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/NSCategories/UIButton+OpenFeint.mm: In function 'void -[UIButton(OpenFeint) setTitleShadowOffsetSafe:](UIButton*, objc_selector*, CGSize)':
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/api/internal/Systems/NSCategories/UIButton+OpenFeint.mm:56: error: request for member 'titleLabel' in 'self', which is of non-class type 'UIButton*'

CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFWebViewController.o OpenFeint/ui/Controllers/Common/OFWebViewController.mm normal armv6 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch armv6 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -fno-objc-exceptions -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -mno-thumb -miphoneos-version-min=3.1.3 -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-generated-files.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-own-target-headers.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-all-target-headers.hmap -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-project-headers.hmap -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -I/Users/jbury/BearlyContained/BC_BuildMain/build/include -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/armv6 -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -include /var/folders/PU/PUzAjG-9FYeuAj6EH7-sC++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iPhone_target_Prefix-bgkgyxaihtvmfuctqcxlhfkaodxv/iPhone_target_Prefix.pch -c /Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/ui/Controllers/Common/OFWebViewController.mm -o /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFWebViewController.o

/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/ui/Controllers/Common/OFWebViewController.mm: In function 'void -[OFWebViewController loadView](OFWebViewController*, objc_selector*)':
/Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/ui/Controllers/Common/OFWebViewController.mm:97: error: 'UIDataDetectorTypeNone' was not declared in this scope

CompileC build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFHighScoreMapViewController.o OpenFeint/ui/Controllers/PageControllers/HighScoreController/OFHighScoreMapViewController.mm normal armv6 objective-c++ com.apple.compilers.gcc.4_2
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 -x objective-c++ -arch armv6 -fmessage-length=0 -pipe -Wno-trigraphs -fno-exceptions -fno-rtti -fno-objc-exceptions -fpascal-strings -Os -mdynamic-no-pic -Wreturn-type -Wunused-variable -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk -fvisibility=hidden -fvisibility-inlines-hidden -fobjc-call-cxx-cdtors -mno-thumb -miphoneos-version-min=3.1.3 -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-generated-files.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-own-target-headers.hmap -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-all-target-headers.hmap -iquote /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/bearlyalive-project-headers.hmap -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -I/Users/jbury/BearlyContained/BC_BuildMain/build/include -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources/armv6 -I/Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/DerivedSources -include /var/folders/PU/PUzAjG-9FYeuAj6EH7-sC++++TI/-Caches-/com.apple.Xcode.501/SharedPrecompiledHeaders/iPhone_target_Prefix-bgkgyxaihtvmfuctqcxlhfkaodxv/iPhone_target_Prefix.pch -c /Users/jbury/BearlyContained/BC_BuildMain/OpenFeint/ui/Controllers/PageControllers/HighScoreController/OFHighScoreMapViewController.mm -o /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/OFHighScoreMapViewController.o

Also this is the error when trying to compile a 2.2.1 version… the mapkit is added as a framework though and set to “weak” as it mentions in the documentation

Build Unity-iPhone of project Unity-iPhone with configuration Release

Ld build/bearlyalive.app/bearlyalive normal armv6
cd /Users/jbury/BearlyContained/BC_BuildMain
setenv IPHONEOS_DEPLOYMENT_TARGET 2.2.1
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.0 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk -L/Users/jbury/BearlyContained/BC_BuildMain/build -L/Users/jbury/BearlyContained/BC_BuildMain -L/Users/jbury/BearlyContained/BC_BuildMain/Libraries -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/usr/lib -F/Users/jbury/BearlyContained/BC_BuildMain/build -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos2.2.1.sdk/System/Library/Frameworks -filelist /Users/jbury/BearlyContained/BC_BuildMain/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/bearlyalive.LinkFileList -mmacosx-version-min=10.5 -dead_strip -Wl,-S,-x -ObjC -miphoneos-version-min=2.2.1 -framework Foundation -weak_framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -framework CoreGraphics -framework Security -weak_framework MapKit -lsqlite3 -o /Users/jbury/BearlyContained/BC_BuildMain/build/bearlyalive.app/bearlyalive

ld: framework not found MapKit
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.0 failed with exit code 1

Hmm. I’m not sure what’s going on with your build. I just set up a new project with 2.4.4, went through all of the steps, and it builds just fine.

One thing you could try is downloading the OpenFeint SDK again, re-importing the package and OF source, and just try building again. I know of at least one other person on the forums who had a corrupted download (or something along those lines).

EDIT: Actually, it looks like all of the errors you’re getting are iPhone SDK errors, and not direct OpenFeint errors (i.e., UIRemoteNotificationTypeBadge is part of the iPhone OS 3.0 SDK, but it seems Xcode can’t find it). I’m not exactly sure what to tell you, other than to make sure you’re using the proper framework versions. Maybe do a “Clean All Targets” and then a Build.

Also, MapKit is 3.0 only. You can’t build with Base SDK set to 2.2.1 and have MapKit weak-linked (Base SDK MUST be 3.0 or above, with deployment target set to the earliest OS you wanted to target).

Ah, I think I know what’s going on now, and it’s my bad. I’ll update the setup document (and possibly the automation script) and send it to the OpenFeint guys.

Basically, right now you’re required to build with 3.0 or above, because the automation script wants to put in MapKit and weak-link it. Unfortunately, MapKit is not available for 2.x.

To fix your problem, in Unity go to Edit->Project Settings->Player, and set “iPhone SDK Version” to iPhone OS 3.0 or higher. The automation script uses this value to determine which Framework directories to use. Then do a “Build…” from Unity (I’d recommend doing a Replace build if you can). Once that’s done, remember to pull in the OpenFeint source and set your deployment target to 2.x so you can still run on 2.x devices.

EDIT: I should point out that just switching the Active SDK in Xcode doesn’t work because the automation script needs to know the SDK version at startup. Unfortunately, it sets these to absolute directories (this is a limitation of Xcode’s AppleScript API, at least as far as I know). So you need to set the SDK version in Unity.

ahhh thanks jerrodputman, that works perfectly now

It never occurred to me that changing the OS in unity would have an effect as I assumed changing it in Xcode would do everything I needed :slight_smile:

Yeah, normally that would be fine. But the OpenFeint plugin relies on that setting in Unity to add the proper frameworks to the Xcode project. It’s something that’s not spelled out in the documentation, so I’ll send a documentation update to the OpenFeint guys. Hopefully things will go smoothly for you from here on out. :slight_smile:

Hi all! I just grabbed the 1.6 update and built my game fine. It was using 2.3 of openfeint but I managed to nuke all my build setup by using the build settings… method (idiot).

So I thought it would be a great time to upgrade to 2.4.4.

Love the integration, but I’m getting this linker error now in XCode:

Ld build/dokidokibloki.app/dokidokibloki normal armv6
cd "/Unity/Builds/DOKI DOKI BLOKI"
setenv IPHONEOS_DEPLOYMENT_TARGET 3.0
setenv MACOSX_DEPLOYMENT_TARGET 10.5
setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk "-L/Unity/Builds/DOKI DOKI BLOKI/build" "-L/Unity/Builds/DOKI DOKI BLOKI" "-L/Unity/Builds/DOKI DOKI BLOKI/Libraries" -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos3.0.sdk/usr/lib "-F/Unity/Builds/DOKI DOKI BLOKI/build" -F/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iphoneos3.0.sdk/System/Library/Frameworks -filelist "/Unity/Builds/DOKI DOKI BLOKI/build/Unity-iPhone.build/Release-iphoneos/Unity-iPhone.build/Objects-normal/armv6/dokidokibloki.LinkFileList" -mmacosx-version-min=10.5 -dead_strip -Wl,-S,-x -ObjC -miphoneos-version-min=3.0 -framework Foundation -weak_framework UIKit -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework MediaPlayer -framework CoreLocation -framework SystemConfiguration -liPhoneNetwork -framework CoreGraphics -framework Security -weak_framework MapKit -lsqlite3 -o "/Unity/Builds/DOKI DOKI BLOKI/build/dokidokibloki.app/dokidokibloki"

ld: in /Unity/Builds/DOKI DOKI BLOKI/Libraries/libiPhone-lib.a(!), archive member '!' with length 0 is not mach-o or bitcode
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/g++-4.2 failed with exit code 1

I am clueless with this stuff so any help is much appreciated!

WAAAAAA - sorry to ping this. Just would love to try and push out a smaller app for an update. Anyone got any clues? If not I might have to take out OpenFeint :frowning:

Huge apologies… I just did a clean build and it all worked perfectly.

Sorry for the false alarm!