Closed patmuk closed 6 months ago
Oh, actually flutter create nf
and flutter run
lead to the same error in cli ('UIKit/UIKit.h' file not found
), but the project runs fine in Xcode. So FRB related might only be my second issue.
(Nevertheless, any help with the first would be great as well!)
Hmm, if flutter create
yields error, then I guess it may be more Flutter-related, and maybe ask in flutter github / stackoverflow / etc. Btw, If XCode runs well, I guess environment variables (especially those related to header search paths) may worth a check.
Yes, thanks - I think as well that it is more environment related.
But the second issue ‚rust-lib-neo‘ not found, sounds FRB related (?). However, I saw that I installed cocoapods via nix as well - will undo that and report if that helped.
But the second issue ‚rust-lib-neo‘ not found, sounds FRB related (?).
I also get quite confused... since it works pretty well on CI as well as real computers. Anyway, if your first problem is solved and 2nd one is still there, feel free to ping me!
@fzyzcjy I can't believe, but installing cocoapods via sudo gem install cocoapods
and removing it from nix fixed the problem!
All is fine, in cli and Xcode now.
I assume that nix installed an old version of cocoapods, as it used the old ruby shipped with MacOS. I installed the latest ruby and latest cocoapods - and now both issues are solved :)
As always, thanks for your quick help @fzyzcjy and sorry for bothering!
Happy to see it is solved and you are welcome!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new issue.
Describe the bug
Hi, I can't compile a freshly created app, neither in cli, nor in Xcode. It might be because of my setup - but the errors look frb related.
Steps to reproduce
flutter_rust_bridge_codegen create neo
cd neo
flutter pub get
flutter_rust_bridge_codegen generate
flutter run ... leads to the first error: Failed to build iOS app Lexical or Preprocessor Issue (Xcode): 'UIKit/UIKit.h' file not found
open iOS/Runner.xcworkspace
run in xcode ... leads to the second error: '/Users/patmuk/Library/Developer/CoreSimulator/Devices/6066442D-018C-43C8-9352-126293114557/data/Containers/Bundle/Application/62BF8BF5-BC44-4C27-A506-7AA2CC104BD9/Runner.app/Frameworks/rust_lib_neo.framework/rust_lib_neo' (no such file), '/usr/lib/rust_lib_neo.framework/rust_lib_neo' (no such file, not in dyld cache), 'rust_lib_neo.framework/rust_lib_neo' (no such `file),
Logs
from flutter run -v
The second error in Xcode - this looks like FRB related: This happens after the build, while starting the app in the simulator:
As far as I remember the file in question was called 'rust_builder', not 'rust_lib_neo'? The rename sounds good, but doesn't seem to work for me.
Version of
clang++
16.0.6
Additional context
I assume that this is very much related to the setup on my machine ... I tried doing this with nix, but gave up and installed the toolchain normally (except clang (InstalledDir: /nix/store/ww7lviar1xyd5az6y763yp5wigvwn3m8-clang-16.0.6/bin) which should not matter).
I would appreciate any help pointing me in the right direction to solve the issue! flutter create and cargo create work both fine - thus it is something in FRB (but most probably in rust_builder).