Xcode 4.2: build for archive is good, but archives fail with errors

I am trying to create my application and submit it to the App Store, but Xcode continues to give me errors when trying to do this.

When I create and run in the simulator, it works, when I build and run for the device, it works when I try to use the build for archive parameter, it works, when I actually try to archive it, it will fail with 9 or 11 errors depending on (IMHO) what time of day it is.

Can anyone understand why? I tried the following other tips , such as deleting a project folder in ~ / Library / Developer / Xcode / DerivedData p>

And another user said to clear the build folder, but this option is grayed out in the menu bar. Does anyone know any other solutions?

All my errors are errors that are not found, I use Three20, so the errors are:

'Three20Core/TTCorePreprocessorMacros.h' file not found 'Three20Core/TTDebug.h' file not found 'Three20Core/TTCorePreprocessorMacros.h' file not found 'Three20Core/TTGlobalCore.h' file not found ../scripts/Protect.command: line 23: cd: /Users/[username]/Library/Developer/Xcode/DerivedData/TTCatalog-gcnbfpwscygfrmdhcfiahsatpdba/ArchiveIntermediates/pr/BuildProductsPath/Release-iphoneos/../three20/Three20Network: No such file or directory 'Three20UICommon/private/UIViewControllerGarbageCollection.h' file not found 'Three20Core/TTGlobalCoreLocale.h' file not found 'Three20UICommon/private/UIViewControllerGarbageCollection.h' file not found ../scripts/Protect.command: line 23: cd: /Users/[username]/Library/Developer/Xcode/DerivedData/TTCatalog-gcnbfpwscygfrmdhcfiahsatpdba/ArchiveIntermediates/pr/BuildProductsPath/Release-iphoneos/../three20/Three20UICommon: No such file or directory 
+7
source share
1 answer

Error seems to be error in environment variables.

Just carefully follow the steps mentioned in the integration of the Three20 @ library https://github.com/facebook/three20 (use the "Second" parameter to manually add it to your project)

Make sure that the configuration is added to all settings (debugging, release, distribution (if any).

Also make sure your Xcode preferences are listed below xcode-> Settings-> Places

  • Select Derived Data-> relative
  • Choose Advanced → Legacy
0
source

All Articles