diff --git a/ios/script/build b/ios/script/build index 88ab3dfc33..32dd42c944 100755 --- a/ios/script/build +++ b/ios/script/build @@ -2,5 +2,20 @@ set -e -script/build_cores -script/build_app +. script/build.config + +xcodebuild clean +rm -rf build + +xcodebuild -verbose -sdk iphoneos -configuration Release + +if ! $nocodesign ; then + codesign -fs "$CODE_SIGN_IDENTITY" "$BUILD_PATH/RetroArch.app/modules/snes9x_next_libretro.dylib" + codesign -fs "$CODE_SIGN_IDENTITY" "$BUILD_PATH/RetroArch.app/modules/nestopia_libretro.dylib" + + xcrun -sdk iphoneos PackageApplication "$BUILD_PATH/RetroArch.app" -o "$BUILD_PATH/RetroArch.ipa" --sign "$CODE_SIGN_IDENTITY" --embed "$PROVISIONING" +fi + + +echo "######### RetroArch build Complete!! #########" +echo "You can find the resulting app in the $BUILD_PATH directory.\n"