xcframework_converter 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5109f0543cf6df9ebebacdcdc107e1a9bdfc11e365d918d62775678a9742a51a
|
4
|
+
data.tar.gz: 76cbc87f54d47b30e6c371f72c6855439e359eb620c0971821985b8c5697ad42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a5650ef13956e95ee516e8d226afa1f282baf3c6268ea52b267c9fb0b5854aa6fc60a9bdf14e315e2274642f584c493da1231f111959f7494875a8d28dc253a
|
7
|
+
data.tar.gz: 545cff6294e8dc3734d0599a03dd40f48e0b1016bd7df06e0efba44e9b297373d64cded2c84004961cd3504b0aed9e2d7595ceda162a0f85d36abc8a318efabd
|
@@ -31,7 +31,7 @@ module XCFrameworkConverter
|
|
31
31
|
|
32
32
|
patched_arm_slice_identifier = 'ios-arm64-simulator'
|
33
33
|
|
34
|
-
|
34
|
+
warn "Will patch #{xcframework_path}: #{original_arm_slice_identifier} -> #{patched_arm_slice_identifier}"
|
35
35
|
|
36
36
|
plist = xcframework.plist
|
37
37
|
slice_plist_to_add = plist['AvailableLibraries'].find { |s| s['LibraryIdentifier'] == original_arm_slice_identifier }.dup
|
@@ -43,6 +43,8 @@ module XCFrameworkConverter
|
|
43
43
|
end.flatten.uniq
|
44
44
|
|
45
45
|
convert_xcframeworks_if_present(spec, frameworks_to_convert)
|
46
|
+
|
47
|
+
remove_troublesome_xcconfig_items(spec)
|
46
48
|
end
|
47
49
|
end
|
48
50
|
|
@@ -50,16 +52,12 @@ module XCFrameworkConverter
|
|
50
52
|
frameworks_to_convert.each do |path|
|
51
53
|
convert_framework_to_xcframework(path) if Dir.exist?(path)
|
52
54
|
end
|
53
|
-
remove_troublesome_xcconfig_items(spec) unless frameworks_to_convert.empty?
|
54
55
|
end
|
55
56
|
|
56
57
|
def patch_xcframeworks_if_needed(spec, xcframeworks)
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
patch_xcframework(path)
|
61
|
-
end.compact
|
62
|
-
remove_troublesome_xcconfig_items(spec) unless patched.empty?
|
58
|
+
xcframeworks.each do |path|
|
59
|
+
patch_xcframework(path) if Dir.exist?(path)
|
60
|
+
end
|
63
61
|
end
|
64
62
|
|
65
63
|
def remove_troublesome_xcconfig_items(spec)
|