-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ElizaSapir
authored
Oct 7, 2020
1 parent
9b9315e
commit 7f740e4
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Xcode 12 Clang: Error in PodSpec Validation due to architectures | ||
|
||
## To resolve above issue do the following: | ||
|
||
Choose the right section to resolve it on your side. | ||
|
||
> For SDK owners: | ||
The solution is to open the podspec and add below: | ||
|
||
```ruby | ||
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'} | ||
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'} | ||
s.ios.deployment_target = '10.0' // not required | ||
``` | ||
|
||
> For SDK users: | ||
1. Navigate to Build Settings of your project and add Any iOS Simulator SDK with value arm64 inside Excluded Architecture. | ||
|
||
 | ||
|
||
2. On Podfile add: | ||
|
||
```ruby | ||
post_install do |installer| | ||
installer.pods_project.build_configurations.each do |config| | ||
config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64" | ||
end | ||
end | ||
``` | ||
|