![]() The very last line should read: lipo: for current configuration (Debug) creating output file: /Users/blah/Library/Developer/Xcode/DerivedData/AppName-ashwnbutvodmoleijzlncudsekyf/Build/Products/Debug-universal/libTargetName.a Apple should auto-select it, but they didn't think of that) Select the top item (this is your "most recent build".Click on the last icon on the right, in the top left area of Xcode4. ![]() If you're using a custom "build output" directory for XCode4, then XCode puts all your "unexpected" files in the wrong place. ![]() Select your Target, and in the Run Script Phase, you MUST untick: "Show environment variables in build log" SDK_VERSION=$(echo $"Īpple deletes all output after 200 lines. # (incidental: searching for substrings in sh is a nightmare! Sob) # First, work out the BASESDK version number (NB: Apple ought to report this, but they hide it) #Įcho "Use the following variables when debugging this script note that they may change on recursions"Įcho "CONFIGURATION_BUILD_DIR = $CONFIGURATION_BUILD_DIR"Įcho "BUILT_PRODUCTS_DIR = $BUILT_PRODUCTS_DIR"Įcho "CONFIGURATION_TEMP_DIR = $CONFIGURATION_TEMP_DIR"Įcho "TARGET_BUILD_DIR = $TARGET_BUILD_DIR" # Based on: original script from Eonil (main changes: Eonil's script WILL NOT WORK in Xcode GUI - it WILL CRASH YOUR COMPUTER) # Automatically create a Universal static library for iPhone + iPad + iPhone Simulator from within XCode # - Corrected typo for iOS 1-10+ (thanks Purpose: # - MORE tweaks to get the iOS 10+ and 9- working SCRIPT (this is what you have to copy/paste)įor usage / install instructions, see below # "copy headers" section now respects the build setting for the location of the public headers (courtesy of Frederik Wallner)Īdded explicit setting of SYMROOT (maybe need OBJROOT to be set too?), thanks to Doug Dickinson NOTE: the install instructions have changed (I can probably simplify this by changing the script in future, but don't want to risk it now) Now supports iPhone5 (using Apple's workaround to the bugs in lipo). include PNG files, PLIST files etc from your library!) - see below (scroll to bottom) Info on how to use this script with a project-embedded-in-another-project (although I highly recommend NOT doing that, ever - Apple has a couple of show-stopper bugs in Xcode if you embed projects inside each other, from Xcode 3.x through to Xcode 4.6.x)īonus script to let you auto-include Bundles (i.e. Added support for iOS 10.x (while maintaining support for older platforms) comment below on the changes he's using to make this work nicely with Archive mode.ġ. Use this, then tweak it to add support for Archive builds - c.f. Karl's library takes much more effort to setup, but much nicer long-term solution (it converts your library into a Framework).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |