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: cf595940b1c6b0ebe51897df3db8bbb2638ffda9971819c297b78b188ddfbe6a
4
- data.tar.gz: 91d6a1ce6ece1ef727a66120a72079ed28ec16db93f457f907543a276172c756
3
+ metadata.gz: 2b7f5b11403141f5355bf42ad2ddd618d0a567d043ade5fb8fc7e765114092f6
4
+ data.tar.gz: abe2e73e1dda530a8d9470b2a0ee38b85fbeea6412801b489a3ec2a647cec374
5
5
  SHA512:
6
- metadata.gz: '080c59ef5916694bdc50771cb3ff412d0a8d5ca2a9bee7abe0c3fce3035adbcb2090daf959b9275c320d95ebc7ac61eb5cefff194c653dea5e053d43383bd0a9'
7
- data.tar.gz: 43a522151b910a46870a3ec0fb3eb9cb6b9bd181a605cd8c5990033fbdb57897da5b5404f7b931fb05ddc6839602a4c589dc17615ccf772edf2bbd10b259c60f
6
+ metadata.gz: c52218b2879dbfab006e056bffd7f038a23e043c2a573d17019ec11d336ea472d88a71b5a75d93ca6f9bc90e28f9cc6795634d68cc3e7d4b1498a5b63d6a4b82
7
+ data.tar.gz: '091496ebf545d2e7638db9f0d004f619823f797b4337b8f819e9f3b41e8535b21e4167c5372e23e6d5f7aa93acd403bfc4960a47eeaea6eda55d255424dcb7ff'
data/README.md CHANGED
@@ -8,4 +8,4 @@ A description of cocoapods-fix-xcframework-slice.
8
8
 
9
9
  ## Usage
10
10
 
11
- $ pod spec slice POD_NAME
11
+ $ plugin 'cocoapods-fix-xcframework-slice'
@@ -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
- target_arch=${target_arch//\ /_}
101
+ # nakahira: No replace
102
+ # target_arch=${target_arch//\ /_}
102
103
 
103
- local target_variant="physical"
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}-physical"
114
+ info="${info}-iphoneos"
114
115
  fi
115
- if [[ $info == *"$target_arch"* ]] && [[ $info == *"$target_variant" ]]; then
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]}
@@ -1,3 +1,3 @@
1
1
  module CocoapodsFixXcframeworkSlice
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
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.1
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-05-16 00:00:00.000000000 Z
11
+ date: 2021-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler