cocoapods-fix-xcframework-slice 0.0.1 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b7f5b11403141f5355bf42ad2ddd618d0a567d043ade5fb8fc7e765114092f6
|
|
4
|
+
data.tar.gz: abe2e73e1dda530a8d9470b2a0ee38b85fbeea6412801b489a3ec2a647cec374
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c52218b2879dbfab006e056bffd7f038a23e043c2a573d17019ec11d336ea472d88a71b5a75d93ca6f9bc90e28f9cc6795634d68cc3e7d4b1498a5b63d6a4b82
|
|
7
|
+
data.tar.gz: '091496ebf545d2e7638db9f0d004f619823f797b4337b8f819e9f3b41e8535b21e4167c5372e23e6d5f7aa93acd403bfc4960a47eeaea6eda55d255424dcb7ff'
|
data/README.md
CHANGED
|
@@ -98,9 +98,10 @@ module Pod
|
|
|
98
98
|
local target_arch="$ARCHS"
|
|
99
99
|
|
|
100
100
|
# Replace spaces in compound architectures with _ to match slice format
|
|
101
|
-
|
|
101
|
+
# nakahira: No replace
|
|
102
|
+
# target_arch=${target_arch//\ /_}
|
|
102
103
|
|
|
103
|
-
local target_variant="
|
|
104
|
+
local target_variant="iphoneos"
|
|
104
105
|
if [[ "$PLATFORM_NAME" == *"simulator" ]]; then
|
|
105
106
|
target_variant="simulator"
|
|
106
107
|
fi
|
|
@@ -110,9 +111,16 @@ module Pod
|
|
|
110
111
|
for i in ${!paths[@]}; do
|
|
111
112
|
local info="${paths[$i]%%/*}"
|
|
112
113
|
if [[ $info != *"simulator" ]] && [[ $info != *"maccatalyst" ]]; then
|
|
113
|
-
info="${info}-
|
|
114
|
+
info="${info}-iphoneos"
|
|
114
115
|
fi
|
|
115
|
-
|
|
116
|
+
archs_matched='true'
|
|
117
|
+
for arch in $target_arch; do
|
|
118
|
+
if [[ $info != *"$arch"* ]]; then
|
|
119
|
+
archs_matched='false'
|
|
120
|
+
break;
|
|
121
|
+
fi
|
|
122
|
+
done
|
|
123
|
+
if [[ $archs_matched == 'true' ]] && [[ $info == *"$target_variant" ]]; then
|
|
116
124
|
# Found a matching slice
|
|
117
125
|
echo "Selected xcframework slice ${paths[$i]}"
|
|
118
126
|
target_path=${paths[$i]}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cocoapods-fix-xcframework-slice
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- nakahira
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|