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

Release build fails execution #90

Open
Blackjacx opened this issue Sep 7, 2020 · 1 comment
Open

Release build fails execution #90

Blackjacx opened this issue Sep 7, 2020 · 1 comment

Comments

@Blackjacx
Copy link

Blackjacx commented Sep 7, 2020

When I integrate SwiftJWT into my App Store Connect CLI tool asc (included in the Assist repo) using Swift Package Manager I get the following runtime error:

objc[57587]: Class _TtGCs18_DictionaryStorageaSo11CFStringRefS0__$ is implemented in both /usr/lib/swift/libswiftCore.dylib (0x7fff9773bfb0) and /usr/lib/swift/libswiftCore.dylib (0x7fff9773c2c8). One of the two will be used. Which one is undefined.
Fatal error: invalid unsafeDowncast: file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-1103.8.25.8/swift/stdlib/public/core/Builtin.swift, line 235
[1]    57587 illegal hardware instruction  mint run blackjacx/assist@develop asc

To reproduce this:

  1. Clone repo: git clone [email protected]:Blackjacx/Assist.git && cd Assist
  2. Build and run in release mode: swift run -c release asc

Alternatively you can use mint to run (which compiles the package in release mode):
mint run blackjacx/assist.git@develop asc

When I enter swift run asc in the locally checked out folder it works without problems. The difference is, that this time it is compiled in debug mode. When using another JWT library I can confirm that it works with another JWT library so SwiftJWT must be the reason for this.

Find my package manifest file at Package.swift.

Help very appreciated 👍

@starpl
Copy link

starpl commented Oct 26, 2021

Same error, app crashes only in Testflight, but not when debugging on a real device / simulator

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

2 participants