Getting build working with XCode 4 #6

Closed
drekka opened this Issue Jun 2, 2011 · 1 comment

Projects

None yet

2 participants

@drekka

HI, I just downloaded and tried the iPhone instructions with XCode 4. They didn't work and just brought in the poject file instead of the project.

So I switched to a set of build scripts I have which build iPhone/iPad universal static frameworks. I used the the build script below and my scripts at https://github.com/drekka/dUsefulStuff/tree/master/scripts along with appledoc. The scripts perform builds for arm and i386 hardware, build documentation and assemble distributable (versioned - I used v1.0.0 because I could not a version on the parsekit code) dmg files.

I thought you might find these scripts interesting. I build a number of static frameworks with them now, both my own and cloned OSS projects.

Here's the main build script I used to drive the build:

#!/bin/sh

# build.sh
#
# Created by Derek Clarkson on 27/08/10.
# Copyright 2010 Derek Clarkson. All rights reserved.

# build specific.
DC_CURRENT_PROJECT_VERSION=${CURRENT_PROJECT_VERSION=1.0.0}
DC_PRODUCT_NAME=${PRODUCT_NAME=ParseKit}
DC_LIB_PREFIX=
DC_SRC=include/ParseKit
DC_BUILD_TARGET="ParseKitMobile"
DC_COMPANY_ID=com.parsekit.ParseKit
DC_AUTHOR="Todd Ditchendorf"
DC_COMPANY=$DC_AUTHOR

DC_SIMULATOR_SDK=iphonesimulator4.3
DC_DEVICE_SDK=iphoneos4.3

DC_SCRIPTS_DIR=../../dUsefulStuff/scripts

# Include common scripts.
source $DC_SCRIPTS_DIR/defaults.sh
source $DC_SCRIPTS_DIR/common.sh

# Clean and setup.
$DC_SCRIPTS_DIR/clean.sh

# Check for a doco only build.
if [ -n "$DC_BUILD_DOCO_ONLY" ]; then
    $DC_SCRIPTS_DIR/createDocumentation.sh
    exit 0
fi

# Otherwise do a full build.
$DC_SCRIPTS_DIR/buildStaticLibrary.sh
$DC_SCRIPTS_DIR/assembleFramework.sh
$DC_SCRIPTS_DIR/createDocumentation.sh

# Final assembly.
$DC_SCRIPTS_DIR/createDmg.sh
@itod
Owner

resolved this a while back

@itod itod closed this Mar 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment