- Home /
OpenFeint Unity sample
Hi folks,
We have been trying to get the sample application provided by OpenFeint to work( http://support.openfeint.com/dev/example-integrating-ofunity-for-ios-with-unity) However despite us following the instructions given to the letter, it is not working. Though we are using XCode 3, upon building, most of the required frameworks appear as missing. After adding them in manually, the application will run, but before getting past the loading screen it will crash with an EXC_BAD_ACCESS error.
Using: Mac OS 10.6.6, Unity 3.4, XCode 3.2.5 and iOS SDK 4.2
Has anyone had similar issues or a potential solution?
I tried using OFUnity for the first time today and had the same issue. I followed the instructions, got a ton of errors and noticed that some of the frameworks were missing. Added them back in and my game builds and runs but crashes at the splash screen. Oddly, I'm getting a different error message though: "Data Formatters temporarily unavailable, will re-try after a 'continue'. (Can't find dlopen function, so it is not possible to load shared libraries.)"
I posted about it on the OF support forum: https://ofdev.zendesk.com/entries/20718287-data-formatters-temporarily-unavailable-will-re-try-after-a-continue-can-t-find-dlopen-function-so-i
No response yet. If you've figured out a solution I'd love to hear about it. If I figure it out I'll let you know.
Answer by skateborden · Dec 01, 2011 at 05:22 PM
I downloaded XCode 4 and followed OpenFeint's XCode 4 integration instructions and so far it seems to be working.
UPDATE: Here's some troubleshooting knowledge I've gained while working on this hopefully someone else will find it useful:
Despite what OpenFeint's documentation says, XCode 4 does not like it when you tell Unity to "Append" your XCode project. Every time I make a change in Unity and want a new XCode build I have to select "Replace" and follow all the steps in the integration docs again (adding the Other Linker Flags, OFResources_Universal.bundle, OpenFeint.framework, and the list of standard frameworks back into my project) otherwise XCode 4 gives me various errors that seem to be linker related.
XCode 4 selects the simulator by default when you open up a new XCode project, and while it seems glaringly obvious and I knew Unity's XCode project doesn't work in the simulator, it's very easy to not notice that the simulator is selected in the "Scheme" buttons in the top left corner of XCode 4. You have to select both "Unity-iPhone" in the left side and a device in the right, otherwise you will get hundreds of errors.
If you get the error "Command /usr/bin/codesign failed with exit code 1" in XCode 4, you need to Clean your project (Product > Clean) and then it builds and runs properly.
Your answer
Follow this Question
Related Questions
iOS build query 0 Answers
OpenFeint Offline Config 0 Answers
OpenFeint integration? 0 Answers
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
For which Platforms can i build AssetBundles with a Mac 1 Answer