Skip to content

Commit

Permalink
fix: disable library code signing
Browse files Browse the repository at this point in the history
Remove withoutSignature build phase in plugin.
  • Loading branch information
tyrauber committed Sep 18, 2024
1 parent 016b44a commit 22030dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 25 deletions.
3 changes: 2 additions & 1 deletion ios/RCTMLN.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,8 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
CODE_SIGN_IDENTITY = "";
CODE_SIGNING_REQUIRED = NO;
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down
25 changes: 1 addition & 24 deletions plugin/src/withMapLibre.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,29 +129,6 @@ export function setExcludedArchitectures(project: XcodeProject): XcodeProject {
return project;
}

const withoutSignatures: ConfigPlugin = (config) => {
const shellScript = `if [ "$XCODE_VERSION_MAJOR" = "1500" ]; then
echo "Remove signature files (Xcode 15 workaround)";
rm -rf "$CONFIGURATION_BUILD_DIR/MapLibre.xcframework-ios.signature";
fi`;
return withXcodeProject(config, async (config) => {
const xcodeProject = config.modResults;

xcodeProject.addBuildPhase(
[],
"PBXShellScriptBuildPhase",
"Remove signature files (Xcode 15 workaround)",
null,
{
shellPath: "/bin/sh",
shellScript,
},
);

return config;
});
};

const withExcludedSimulatorArchitectures: ConfigPlugin = (c) => {
return withXcodeProject(c, (config) => {
config.modResults = setExcludedArchitectures(config.modResults);
Expand All @@ -160,7 +137,7 @@ const withExcludedSimulatorArchitectures: ConfigPlugin = (c) => {
};

const withMapLibre: ConfigPlugin = (config) => {
config = withoutSignatures(withExcludedSimulatorArchitectures(config));
config = withExcludedSimulatorArchitectures(config);
return withCocoaPodsInstallerBlocks(config);
};

Expand Down

0 comments on commit 22030dd

Please sign in to comment.