Skip to content

Commit

Permalink
fix(cocoapods): exclude arm64 architecture from cocoapods builds
Browse files Browse the repository at this point in the history
we do not support the XCFramework solution for Apple Silicon at this time, so we need to exlcude
arm64 from the build architectures
  • Loading branch information
jeff-arn authored and apaparazzi0329 committed Jan 29, 2021
1 parent 611c9cc commit 26eed51
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions IBMWatsonSpeechToTextV1.podspec
Expand Up @@ -32,6 +32,16 @@ of the audio signal. It continuously returns and retroactively updates a transcr
s.dependency 'Starscream', '~> 3.0.0'
s.vendored_libraries = 'Sources/SupportingFiles/Dependencies/Libraries/*.a'

# This is necessary for the time being as we do not support the
# XCFramework binary solution that can be bundled for all
# architectures (thus supporting Apple Silicon)
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

# The renaming of libogg.a and libopus.a is done to avoid duplicate library name errors
# in case TextToSpeech is being installed in the same app (which also includes libogg and libopus)
# The ogg/ and opus/ files are flattened to the same directory so that all #include statements work
Expand Down
10 changes: 10 additions & 0 deletions IBMWatsonTextToSpeechV1.podspec
Expand Up @@ -28,6 +28,16 @@ The service streams the results back to the client with minimal delay.
s.dependency 'IBMSwiftSDKCore', '~> 1.0.0'
s.vendored_libraries = 'Sources/SupportingFiles/Dependencies/Libraries/*.a'

# This is necessary for the time being as we do not support the
# XCFramework binary solution that can be bundled for all
# architectures (thus supporting Apple Silicon)
s.pod_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}
s.user_target_xcconfig = {
'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
}

# The renaming of libogg.a and libopus.a is done to avoid duplicate library name errors
# in case SpeechToText is being installed in the same app (which also includes libogg and libopus)
# The ogg/ and opus/ files are flattened to the same directory so that all #include statements work
Expand Down

0 comments on commit 26eed51

Please sign in to comment.