From f5c9e37201049a9b530bc5481ea3ba0561d8a6d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Munhoz=20P=C3=A9los?= Date: Mon, 8 Jul 2013 18:48:33 -0300 Subject: [PATCH] Fix build script for iOS. --- apple/script/build | 19 ++++++++----------- apple/script/build.config | 2 +- 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/apple/script/build b/apple/script/build index 833f15dc5c..9b28188f91 100755 --- a/apple/script/build +++ b/apple/script/build @@ -4,25 +4,22 @@ set -e . script/build.config -xcodebuild clean -rm -rf build +PROJECT_NAME="RetroArch_iOS.xcodeproj" +# xcodebuild clean -project $PROJECT_NAME +# rm -rf build if [ -z "$NOCODESIGN" ] ; then - # Fetch the UUID of the provisioning profile and install the profile # https://github.com/sharpland/mobileprovisionParser # http://idevblog.info/mobileprovision-files-structure-and-reading/ - PROVISION_UUID=`script/mobileprovisionParser -f "$PROVISIONING_PROFILE" -o UUID` - cp "$PWD/$PROVISIONING_PROFILE" ~/Library/MobileDevice/Provisioning\ Profiles/"$PROVISION_UUID".mobileprovision + # PROVISION_UUID=`script/mobileprovisionParser -f "$PROVISIONING" -o UUID` + # cp "$PWD/$PROVISIONING" ~/Library/MobileDevice/Provisioning\ Profiles/"$PROVISION_UUID".mobileprovision - xcodebuild -verbose -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="$PROVISION_UUID" + # xcodebuild -verbose -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="$PROVISION_UUID" -project $PROJECT_NAME - echo "CODESIGNING DYNAMIC LIBRARIES AND BUILDING IPA" - - for file in $(find "$BUILD_PATH/RetroArch.app/modules/" -name "*.dylib") ; do - codesign -fs "$CODE_SIGN_IDENTITY" "$file" - done + # echo "CODESIGNING DYNAMIC LIBRARIES AND BUILDING IPA" + # codesign -fs "$CODE_SIGN_IDENTITY" $BUILD_PATH/RetroArch.app/modules/*.dylib xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$BUILD_PATH/RetroArch.app/embedded.mobileprovision" else diff --git a/apple/script/build.config b/apple/script/build.config index 6797abfe5f..0e8a862b66 100644 --- a/apple/script/build.config +++ b/apple/script/build.config @@ -1,3 +1,3 @@ -CODE_SIGN_IDENTITY="iPhone Distribution" +CODE_SIGN_IDENTITY="iPhone Developer" PROVISIONING="distribution.mobileprovision" BUILD_PATH="$PWD/build/Release-iphoneos"