Comments (8)
https://github.com/CocoaPods/Specs/blob/master/Specs/b/e/4/SwiftyJSON/5.0.2/SwiftyJSON.podspec.json#L32 Updated
Can you guys confirm working now?
from swiftyjson.
Our team also faced this problem: the problem is in the podspec:
https://github.com/CocoaPods/Specs/blob/master/Specs/b/e/4/SwiftyJSON/5.0.2/SwiftyJSON.podspec.json#L32
"pod_target_xcconfig": {
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64"
},
"user_target_xcconfig": {
"EXCLUDED_ARCHS[sdk=iphonesimulator*]": "arm64"
},
This means that the library will not compile on M1/X iOS Simulators, so we can't perform pod lib lint
for our internal dependencies.
As a workaround, we have pinned the SwiftyJSON version to the previous stable release:
s.dependency 'SwiftyJSON', '5.0.1'
from swiftyjson.
@rock88, I've just posted similar info in #1154.
As a temporary workaround you can define the dependency as:
pod 'SwiftyJSON', :git => 'https://github.com/SwiftyJSON/SwiftyJSON.git', :tag => '5.0.2'
So that you will have the Apple Privacy Manifest and it will compile normally.
from swiftyjson.
@Vyazovoy yes, if you have Podfile
you can use this approach. But our internal dependencies are hosted in separate repositories and we need to do pod lib lint
and pod repo push
to update/publish them.
So we can't use something like:
s.dependency 'SwiftyJSON', '~> 5.0.2' # Due to the podspec not compiling on Arm devices
s.dependency 'SwiftyJSON', '~> 5.0.1' # Due to the fact that the `pod lint lint` will use a new version of SwiftyJSON
So we can't use another version of SwiftyJSON in Podfile:
pod install
[!] CocoaPods could not find compatible versions for pod "SwiftyJSON":
In Podfile:
SwiftyJSON (from `https://github.com/SwiftyJSON/SwiftyJSON.git`, tag `5.0.2`)
InternalLibrary (= 1.0.0) was resolved to 1.0.0, which depends on
SwiftyJSON (= 5.0.1)
It's not a problem at the moment, I can wait for the podspec to be fixed.
from swiftyjson.
I've republished 5.0.2. No problem.
from swiftyjson.
Thank you, @wongzigii! Now it works as expected 🎉
BTW, #1154 can be closed now.
from swiftyjson.
@Shannon-Yang Can you confirm the latest 5.0.2 work as expect?
from swiftyjson.
@wongzigii Yes, version 5.0.2 works very well👍, thank you
from swiftyjson.
Related Issues (20)
- Warning that in Swift 6 will be an error HOT 13
- Type 'Any' is not optional, value can never be nil; this is an error in Swift 6 HOT 2
- How to update a field of a SwiftyJSON object
- New version release - When? HOT 11
- Json cert
- Recommended way to conform `JSON` to `Hashable` HOT 4
- Empty dictionary object cannot insert data HOT 2
- unwrap crash HOT 1
- Privacy manifest required by Apple HOT 9
- Errors in readme HOT 1
- Privacy Manifest HOT 5
- Is this repository no longer maintained? why? HOT 4
- STACK CANARY problem
- Privacy manifest for application
- PrivacyInfo file HOT 1
- Update to 5.0.2 with cocoapods HOT 10
- 特殊符号
- SwiftyJSON 5.0.2: EXCLUDED_ARCHS arm64 HOT 3
- The local podspec ios deployment version is different from the one which is in CocoaPods/Specs
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftyjson.