iOS: i386 error when building
I had a very frustrating experience when trying to test an app. I could see everything was correct, there were no errors and it would build in the simulator, but when building for my iPhone I was getting an error: missing required architecture i386 in file fortunately I remembered to search the net to see if it wasn’t just me and I came a cross a post on StackOverflow.
Basically the solution that worked for me was deleting some information within my Xcode project file.
You should first back up your project bundle file, then open project.pbxproj which is inside the project file bundle. Use TextMate or similar to open it and search for the section “/* Begin XCBuildConfiguration section */”. (It was nearly at the bottom of the file.) There will be a key named FRAMEWORK_SEARCH_PATHS and delete it and it’s contents, it will be similar to the following:
FRAMEWORK_SEARCH_PATHS = ( "$(inherited)",
"\"$(DEVELOPER_DIR)/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library/Frameworks\"",);
That solved my issue and it now builds fine without the error message.
No related posts.

0 Comments