Skip to content

Commit 3fe37c9

Browse files
committed
Merge pull request #711 from ParsePlatform/nlutsenko.bolts.dynamic
Use dynamic framework version of Bolts.
2 parents c36840a + c39ab5b commit 3fe37c9

File tree

10 files changed

+242
-42
lines changed

10 files changed

+242
-42
lines changed

Configurations/Parse-OSX.xcconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ MACH_O_TYPE = mh_dylib
1717
DEFINES_MODULE = YES
1818
DYLIB_INSTALL_NAME_BASE = @rpath
1919

20-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/osx/
21-
2220
INFOPLIST_FILE = $(PROJECT_DIR)/Parse/Resources/Parse-OSX.Info.plist

Configurations/Parse-iOS.xcconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ APPLICATION_EXTENSION_API_ONLY = YES
1717
MACH_O_TYPE = staticlib
1818
DEFINES_MODULE = YES
1919

20-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/ios/
21-
2220
INFOPLIST_FILE = $(PROJECT_DIR)/Parse/Resources/Parse-iOS.Info.plist
2321

2422
OTHER_CFLAGS[sdk=iphoneos9.*] = $(inherited) -fembed-bitcode

Configurations/Parse-tvOS.xcconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ DEFINES_MODULE = YES
1919

2020
OTHER_LDFLAGS = $(inherited) -ObjC
2121

22-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/tvOS/
23-
2422
INFOPLIST_FILE = $(PROJECT_DIR)/Parse/Resources/Parse-tvOS.Info.plist

Configurations/Parse-watchOS.xcconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,4 @@ ENABLE_BITCODE = YES
2020

2121
OTHER_LDFLAGS = $(inherited) -ObjC
2222

23-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/watchOS/
24-
2523
INFOPLIST_FILE = $(PROJECT_DIR)/Parse/Resources/Parse-watchOS.Info.plist

Configurations/ParseUnitTests-OSX.xcconfig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ PRODUCT_MODULE_NAME = ParseUnitTests
1515
PRODUCT_BUNDLE_IDENTIFIER = com.parse.unit.osx
1616

1717
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/ParseUnitTests-OSX-Info.plist
18-
LD_RUNPATH_SEARCH_PATHS = $(inherited) @loader_path/../Frameworks
19-
20-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/osx
18+
LD_RUNPATH_SEARCH_PATHS = $(inherited) @executable_path/../Frameworks @loader_path/../Frameworks @executable_path/Frameworks @loader_path/Frameworks
2119

2220
USER_HEADER_SEARCH_PATHS = $(inherited) $(PARSE_DIR)/Parse/Internal/**
2321

Configurations/ParseUnitTests-iOS.xcconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ IPHONEOS_DEPLOYMENT_TARGET = 8.0
1818

1919
INFOPLIST_FILE = $(SRCROOT)/Tests/Resources/ParseUnitTests-iOS-Info.plist
2020

21-
FRAMEWORK_SEARCH_PATHS = $(inherited) $(BUILT_PRODUCTS_DIR) $(PROJECT_DIR)/Carthage/Checkouts/Bolts-iOS/build/ios
22-
2321
USER_HEADER_SEARCH_PATHS = $(inherited) $(PARSE_DIR)/Parse/Internal/**
2422

2523
// Swift

Parse.xcodeproj/project.pbxproj

Lines changed: 236 additions & 27 deletions
Large diffs are not rendered by default.

Parse.xcworkspace/contents.xcworkspacedata

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ParseStarterProject/iOS/ParseStarterProject-Swift/ParseStarterProject-Swift.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
);
220220
runOnlyForDeploymentPostprocessing = 0;
221221
shellPath = /bin/sh;
222-
shellScript = "if [[ ! -d \"Bolts.framework\" ]]; then\n cp -R ../../../Carthage/Checkouts/Bolts-iOS/build/ios/Bolts.framework .\nfi\n";
222+
shellScript = "# Remove the compiled version of Bolts.framework as we need a static one\nrm -r $BUILT_PRODUCTS_DIR/Bolts.framework\n\nif [[ ! -d \"Bolts.framework\" ]]; then\n cp -R ../../../Carthage/Checkouts/Bolts-iOS/build/ios/Bolts.framework .\nfi\n";
223223
};
224224
/* End PBXShellScriptBuildPhase section */
225225

ParseStarterProject/iOS/ParseStarterProject/ParseStarterProject.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@
282282
);
283283
runOnlyForDeploymentPostprocessing = 0;
284284
shellPath = /bin/sh;
285-
shellScript = "if [[ ! -d \"Bolts.framework\" ]]; then\n cp -R ../../../Carthage/Checkouts/Bolts-iOS/build/ios/Bolts.framework .\nfi\n";
285+
shellScript = "# Remove the compiled version of Bolts.framework as we need a static one\nrm -r $BUILT_PRODUCTS_DIR/Bolts.framework\n\nif [[ ! -d \"Bolts.framework\" ]]; then\n cp -R ../../../Carthage/Checkouts/Bolts-iOS/build/ios/Bolts.framework .\nfi\n";
286286
};
287287
/* End PBXShellScriptBuildPhase section */
288288

0 commit comments

Comments
 (0)