From 0de04f2e38154788d0972e2a6310fc665378803a Mon Sep 17 00:00:00 2001 From: Brandon Jenniges Date: Fri, 31 May 2024 11:18:55 -0500 Subject: [PATCH] Remove code signing from xcodebuild --- .github/workflows/build.yml | 2 +- example/README.md | 15 ++++++++++++++- example/ios/Runner.xcodeproj/project.pbxproj | 18 ------------------ 3 files changed, 15 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a24da29..ccdbfe6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,4 +34,4 @@ jobs: rm Pods && rm Podfile.lock flutter pub get pod install --repo-update - xcodebuild -workspace Runner.xcworkspace -configuration Debug -scheme Runner -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" \ No newline at end of file + xcodebuild -workspace Runner.xcworkspace -configuration Debug -scheme Runner -destination "platform=iOS Simulator,OS=16.2,name=iPhone 14" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO diff --git a/example/README.md b/example/README.md index feaeb45..c37bfdb 100644 --- a/example/README.md +++ b/example/README.md @@ -42,7 +42,20 @@ This quick start guide makes the following assumptions: ### Step 3: Run the sample app for iOS -1. Launch iOS emulator, run the flutter example from the `example` project folder: +Open the Runner.xcworkspace from the example folder. + +1. In the Build Phases tab for the Runner target click the + button at the top of the pane. + +2. Select New Run Script Phase. + +3. Pase the following into the editor panel of the new run script: + + ``` + FRAMEWORKS="${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" + "${FRAMEWORKS}/SquareInAppPaymentsSDK.framework/setup" + ``` + +4. Launch iOS emulator, run the flutter example from the `example` project folder: ```bash cd /example flutter run diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 6967b36..0691b9d 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -146,7 +146,6 @@ 3B06AD1E1E4923F5004D2608 /* Thin Binary */, 5BC38C83D881270381C64576 /* [CP] Embed Pods Frameworks */, 09ACBE0189125E5E78E58F54 /* [CP] Copy Pods Resources */, - D4A2830129DC8C66002AE188 /* ShellScript */, ); buildRules = ( ); @@ -270,23 +269,6 @@ shellPath = /bin/sh; shellScript = "/bin/sh \"$FLUTTER_ROOT/packages/flutter_tools/bin/xcode_backend.sh\" build\n"; }; - D4A2830129DC8C66002AE188 /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - ); - outputFileListPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "FRAMEWORKS=\"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}\"\n\"${FRAMEWORKS}/SquareInAppPaymentsSDK.framework/setup\"\n"; - }; D8C50486A84C5EDFF3E42275 /* [CP] Check Pods Manifest.lock */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647;