Skip to content

Commit c702d03

Browse files
authored
Merge pull request #275 from heoblitz/fix/carthage
Fix build failure issue on Carthage
2 parents 3cb0695 + d1ab43b commit c702d03

File tree

6 files changed

+19
-57
lines changed

6 files changed

+19
-57
lines changed

Example/cocoapods/FlexLayoutSample.xcodeproj/project.pbxproj

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@
199199
249EFE361E64FAFE00165E39 = {
200200
isa = PBXGroup;
201201
children = (
202-
249EFE411E64FAFE00165E39 /* ../FlexLayoutSample */,
202+
249EFE411E64FAFE00165E39 /* FlexLayoutSample */,
203203
461884C59B72ACEAFC912B8A /* Frameworks */,
204204
85CAAE97812075333AF3E88F /* Pods */,
205205
249EFE401E64FAFE00165E39 /* Products */,
@@ -214,7 +214,7 @@
214214
name = Products;
215215
sourceTree = "<group>";
216216
};
217-
249EFE411E64FAFE00165E39 /* ../FlexLayoutSample */ = {
217+
249EFE411E64FAFE00165E39 /* FlexLayoutSample */ = {
218218
isa = PBXGroup;
219219
children = (
220220
2439CC671E66614D003326FB /* Supporting Files */,
@@ -364,7 +364,6 @@
364364
DF1F2A141F17D11700BA1B97 /* Frameworks */,
365365
DF1F2A181F17D11700BA1B97 /* Resources */,
366366
DF1F2A1B1F17D11700BA1B97 /* Embed Frameworks */,
367-
DF1F2A1C1F17D11700BA1B97 /* [CP] Embed Pods Frameworks */,
368367
DF1F2A1E1F17D11700BA1B97 /* Run Swiftlint */,
369368
);
370369
buildRules = (
@@ -442,28 +441,6 @@
442441
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
443442
showEnvVarsInLog = 0;
444443
};
445-
DF1F2A1C1F17D11700BA1B97 /* [CP] Embed Pods Frameworks */ = {
446-
isa = PBXShellScriptBuildPhase;
447-
buildActionMask = 2147483647;
448-
files = (
449-
);
450-
inputPaths = (
451-
"${PODS_ROOT}/Target Support Files/Pods-FlexLayoutSample/Pods-FlexLayoutSample-frameworks.sh",
452-
"${BUILT_PRODUCTS_DIR}/Yoga/yoga.framework",
453-
"${BUILT_PRODUCTS_DIR}/FlexLayout/FlexLayout.framework",
454-
"${BUILT_PRODUCTS_DIR}/PinLayout/PinLayout.framework",
455-
);
456-
name = "[CP] Embed Pods Frameworks";
457-
outputPaths = (
458-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/yoga.framework",
459-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FlexLayout.framework",
460-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PinLayout.framework",
461-
);
462-
runOnlyForDeploymentPostprocessing = 0;
463-
shellPath = /bin/sh;
464-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlexLayoutSample/Pods-FlexLayoutSample-frameworks.sh\"\n";
465-
showEnvVarsInLog = 0;
466-
};
467444
DF1F2A1E1F17D11700BA1B97 /* Run Swiftlint */ = {
468445
isa = PBXShellScriptBuildPhase;
469446
alwaysOutOfDate = 1;

FlexLayout.xcodeproj/project.pbxproj

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@
276276
780CC5362B9779C60FF80C2D /* [CP] Check Pods Manifest.lock */,
277277
24DA375F1EF843C500D1AB2F /* Sources */,
278278
24DA37601EF843C500D1AB2F /* Frameworks */,
279-
1CCE19B4893250DCBCF5F00C /* [CP] Embed Pods Frameworks */,
280279
);
281280
buildRules = (
282281
);
@@ -341,26 +340,6 @@
341340
/* End PBXResourcesBuildPhase section */
342341

343342
/* Begin PBXShellScriptBuildPhase section */
344-
1CCE19B4893250DCBCF5F00C /* [CP] Embed Pods Frameworks */ = {
345-
isa = PBXShellScriptBuildPhase;
346-
buildActionMask = 2147483647;
347-
files = (
348-
);
349-
inputPaths = (
350-
"${PODS_ROOT}/Target Support Files/Pods-FlexLayoutTests/Pods-FlexLayoutTests-frameworks.sh",
351-
"${BUILT_PRODUCTS_DIR}/Yoga/yoga.framework",
352-
"${BUILT_PRODUCTS_DIR}/FlexLayout/FlexLayout.framework",
353-
);
354-
name = "[CP] Embed Pods Frameworks";
355-
outputPaths = (
356-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/yoga.framework",
357-
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/FlexLayout.framework",
358-
);
359-
runOnlyForDeploymentPostprocessing = 0;
360-
shellPath = /bin/sh;
361-
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-FlexLayoutTests/Pods-FlexLayoutTests-frameworks.sh\"\n";
362-
showEnvVarsInLog = 0;
363-
};
364343
296ABF4DC2205E5C45A6CE32 /* [CP] Check Pods Manifest.lock */ = {
365344
isa = PBXShellScriptBuildPhase;
366345
buildActionMask = 2147483647;

Podfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
source 'https://cdn.cocoapods.org/'
2-
use_frameworks!
2+
use_frameworks! :linkage => :static
33
platform :ios, '13.4'
44

55
workspace 'FlexLayout.xcworkspace'

Podfile.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- FlexLayout (2.1.0):
2+
- FlexLayout (2.2.0):
33
- Yoga (= 3.2.1)
44
- PinLayout (1.10.5)
55
- SwiftLint (0.55.1)
@@ -22,11 +22,11 @@ EXTERNAL SOURCES:
2222
:path: "./"
2323

2424
SPEC CHECKSUMS:
25-
FlexLayout: 4832b2e2069002e7d3f48dffbb20cc773a1813be
25+
FlexLayout: a8947ca2446760b5203ba5a3d862023c92a82fce
2626
PinLayout: f6c2b63a5a5b24864064e1d15c67de41b4e74748
2727
SwiftLint: 3fe909719babe5537c552ee8181c0031392be933
2828
Yoga: 636ce73bd247407928a7df089f3bc3675916b3ff
2929

30-
PODFILE CHECKSUM: de7bb13eccf1a1ff875980af83b7d4a0cba2ca59
30+
PODFILE CHECKSUM: e95bd8fefde1bd2741249ea540133b9a4393b01f
3131

32-
COCOAPODS: 1.15.2
32+
COCOAPODS: 1.16.2

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,8 +1153,14 @@ To integrate FlexLayout into your Xcode project using Carthage:
11531153
github "layoutBox/FlexLayout"
11541154
```
11551155

1156-
2. Run `carthage update` to build frameworks.
1157-
3. Add built `FlexLayout.framework` in your Xcode project in the **Embedded Binaries** section.
1156+
2. Run the following commands to resolve dependencies and build:
1157+
```bash
1158+
carthage update --no-build
1159+
(cd ./Carthage/Checkouts/FlexLayout && pod install)
1160+
carthage build --use-xcframeworks
1161+
```
1162+
1163+
3. Add built `FlexLayout.xcframework` in your Xcode project in the **Embedded Binaries** section.
11581164

11591165

11601166
### Swift Package Manager

Sources/Swift/Public/FlexLayout.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ FOUNDATION_EXPORT double FlexLayoutVersionNumber;
2424
FOUNDATION_EXPORT const unsigned char FlexLayoutVersionString[];
2525

2626
// In this header, you should import all the public headers of your framework using
27-
#import "Yoga.h"
28-
#import "YGEnums.h"
29-
#import "YGMacros.h"
30-
#import "YGValue.h"
27+
#import <yoga/Yoga.h>
28+
#import <yoga/YGEnums.h>
29+
#import <yoga/YGMacros.h>
30+
#import <yoga/YGValue.h>

0 commit comments

Comments
 (0)