Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xcode 12 Workaround #1066

Open
tattn opened this issue Jun 30, 2020 · 8 comments
Open

Xcode 12 Workaround #1066

tattn opened this issue Jun 30, 2020 · 8 comments

Comments

@tattn
Copy link

tattn commented Jun 30, 2020

I use Carthage to build SwiftyJSON.
But it was failed in Xcode 12 beta 1.

Show the following error:

Undefined symbols for architecture armv7:
  "type metadata for Swift._StringObject.Variant", referenced from:
      outlined init with take of Swift._StringObject.Variant in SwiftyJSON.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It can be also reproduced on archive build.

So I added the workaround for Xcode 12.
Please try the following if you use Carthage:

github "tattn/SwiftyJSON" "hotfix-xcode12"

The change is https://github.com/SwiftyJSON/SwiftyJSON/compare/master...tattn:hotfix-xcode12?expand=1.

I think the type inference of String may be broken in Xcode 12 beta 1.
https://developer.apple.com/forums/thread/649918

@sjorsvb
Copy link

sjorsvb commented Jul 8, 2020

For CocoaPods you can temporarily use
pod 'SwiftyJSON', :git => 'https://github.com/tattn/SwiftyJSON.git', :branch => 'hotfix-xcode12'

@ethancwb
Copy link

ethancwb commented Jul 9, 2020

Looks like it is still broken in Xcode beta 2. 😢

@felginep
Copy link

This is fixed on beta 4

@netgfx
Copy link

netgfx commented Sep 21, 2020

It throws No such module 'SwiftyJSON' I'm using: pod 'SwiftyJSON', '~> 5.0' (XCode 12, it was working fine on XCode 11)
Any ideas?

@mido89
Copy link

mido89 commented Sep 21, 2020

No such module 'SwiftyJSON' in Xcode 12 Any help ?

@Ariandr
Copy link

Ariandr commented Oct 23, 2020

@BansCons
Copy link

BansCons commented Feb 5, 2021

This fix won't work on Xcode 12.2. SwiftyJSON is still throwing 'no such module'

@ZhannySunny
Copy link

This fix won't work on Xcode 12.2. SwiftyJSON is still throwing 'no such module'

Did you fix this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants