Skip to content

Commit

Permalink
Fix nasty Xcode 12 SPM bug by using this fix (Firebase SPM package wa…
Browse files Browse the repository at this point in the history
  • Loading branch information
Sajjon committed Feb 27, 2021
1 parent c892c48 commit 2b83bdd
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/Application/Zhip-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.2</string>
<string>1.0.3</string>
<key>CFBundleVersion</key>
<string>15</string>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSRequiresIPhoneOS</key>
Expand Down
4 changes: 4 additions & 0 deletions Zhip.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2481,6 +2481,7 @@
baseConfigurationReference = 4858D7B42194F92800030237 /* Zhip-Debug.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = Zhip.entitlements;
CURRENT_PROJECT_VERSION = 1003;
DEVELOPMENT_TEAM = S33QJG3B86;
PROVISIONING_PROFILE_SPECIFIER = "Zhip iOS Dev Cert";
SWIFT_OPTIMIZATION_LEVEL = "-O";
Expand All @@ -2492,6 +2493,9 @@
baseConfigurationReference = 4858D7B52194F92800030237 /* Zhip-Release.xcconfig */;
buildSettings = {
CODE_SIGN_ENTITLEMENTS = Zhip.entitlements;
CURRENT_PROJECT_VERSION = 1003;
DEVELOPMENT_TEAM = S33QJG3B86;
PROVISIONING_PROFILE_SPECIFIER = "Zhip iOS AppStore Release";
};
name = Release;
};
Expand Down
20 changes: 19 additions & 1 deletion Zhip.xcodeproj/xcshareddata/xcschemes/Zhip.xcscheme
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
version = "1.3">
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<PostActions>
<ExecutionAction
ActionType = "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction">
<ActionContent
title = "Run Script"
scriptText = "rm -rf &quot;${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/FirebaseAnalytics.framework&quot;&#10;rm -rf &quot;${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/GoogleAppMeasurement.framework&quot;&#10;rm -rf &quot;${TARGET_BUILD_DIR}/${TARGET_NAME}.app/Frameworks/FIRAnalyticsConnector.framework&quot;&#10;">
<EnvironmentBuildable>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "484B063520BA0C2D00C4E50A"
BuildableName = "Zhip.app"
BlueprintName = "Zhip"
ReferencedContainer = "container:Zhip.xcodeproj">
</BuildableReference>
</EnvironmentBuildable>
</ActionContent>
</ExecutionAction>
</PostActions>
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
Expand Down

0 comments on commit 2b83bdd

Please sign in to comment.