X Tutup
The Wayback Machine - https://web.archive.org/web/20210106085712/https://github.com/SwiftyJSON/SwiftyJSON/issues/1066
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 · 6 comments
Open

Xcode 12 Workaround #1066

tattn opened this issue Jun 30, 2020 · 6 comments

Comments

@tattn
Copy link

@tattn 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 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 ethancwb commented Jul 9, 2020

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

@felginep
Copy link

@felginep felginep commented Aug 13, 2020

This is fixed on beta 4

@netgfx
Copy link

@netgfx 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 mido89 commented Sep 21, 2020

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

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

Successfully merging a pull request may close this issue.

None yet
7 participants
You can’t perform that action at this time.
X Tutup