Skip to content

Commit

Permalink
Remove code signing from xcodebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonjenniges committed Jun 3, 2024
1 parent 2063b0e commit 0de04f2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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
15 changes: 14 additions & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <YOUR_PROJECT_DIRECTORY>/example
flutter run
Expand Down
18 changes: 0 additions & 18 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
3B06AD1E1E4923F5004D2608 /* Thin Binary */,
5BC38C83D881270381C64576 /* [CP] Embed Pods Frameworks */,
09ACBE0189125E5E78E58F54 /* [CP] Copy Pods Resources */,
D4A2830129DC8C66002AE188 /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0de04f2

Please sign in to comment.