Merge pull request #217 from maddox/correct-codesigning

Correct Codesigning
This commit is contained in:
Squarepusher 2013-05-31 07:33:00 -07:00
commit 21369d224a
3 changed files with 17 additions and 6 deletions

View File

@ -355,7 +355,8 @@
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = NO;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_DYNAMIC_NO_PIC = NO;
@ -411,7 +412,8 @@
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "";
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "";
COPY_PHASE_STRIP = YES;
GCC_C_LANGUAGE_STANDARD = gnu99;
GCC_WARN_ABOUT_RETURN_TYPE = YES;

View File

@ -7,17 +7,26 @@ set -e
xcodebuild clean
rm -rf build
xcodebuild -verbose -sdk iphoneos -configuration Release
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
xcodebuild -verbose -sdk iphoneos -configuration Release CODE_SIGN_IDENTITY="${CODE_SIGN_IDENTITY}" PROVISIONING_PROFILE="$PROVISION_UUID"
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
xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$PROVISIONING"
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
xcodebuild -verbose -sdk iphoneos -configuration Release
echo "Building for Jailbroken system"
fi

BIN
ios/script/mobileprovisionParser Executable file

Binary file not shown.