-
Notifications
You must be signed in to change notification settings - Fork 608
Can't run in macOS SwiftUI App #602
Comments
One thing you can try is to look at the arguments for a successful build, and try adding some of those arguments to the scheme of the unsuccessful build. You can find the successful arguments by building as I haven't seen that exact error before, but I've solved other |
Thank you for your tips. I wasn't able to get anywhere though.. The error seems to indicate that SwiftUI wants some symbol that's missing from tensorflow's libswiftFoundation.dylib. Then I would've expected to find it in the "default" libswiftFoundation.dylib. But Even weirder, I do find the symbol in: I did try setting
But don't really know what's going on, or what I'm doing trying to troubleshoot this.. :P It does seem to be some library version inconsistencies though. Found a post with a very similar issue and explanation in the swift forums. Can't really draw any conclusions from it though, is SwiftUI-support doomed? |
If you try to use a toolchain from Swift.org to build your application and ignore the TensorFlow bits for now, does that work? There may have been some significant changes between when we last had a successful macOS toolchain build and upstream Swift. If a Swift.org toolchain works to build your application, that would narrow it down to something wrong in the 0.12 macOS toolchain, which was still using the custom |
Hmm, no.. Swift 5.3.3 Release
Trunk Development (main)
Swift 5.4 Development
Swift 5.3 Development
Edit: |
I'm encountering a runtime error if I try to use TensorFlow in an SwiftUI App:
Setup:
Steps to reproduce:
macOS
andApp
. Leaving Interface and Life Cycle as default, i.e. SwiftUI.Also, if choosing
Command Line Tool
instead ofApp
, everything works as expected.The text was updated successfully, but these errors were encountered: