website
website copied to clipboard
Provide remedy to missing xcworkspace file on 'Binding to native macOS code using dart:ffi' page
Page URL
https://docs.flutter.dev/platform-integration/macos/c-interop/
Page source
https://github.com/flutter/website/tree/main/src/platform-integration/macos/c-interop.md
Describe the problem
The page says
In Xcode, open Runner.xcworkspace. Add the C/C++/Objective-C/Swift source files to the Xcode project.
XCode 14.3 does not show a Runner.xcworkspace, nor does a global search turn it up.
Expected fix
Explain how to add the file to the current XCode UI
Additional context
No response
Looks like the file should be added to the “Link Binary With Libraries” section of Build Phases?
This appears to be a CocoaPods issue as explained on this page. We'll update the docs to account for this.
I may be misreading the linked Cocoapods issue, I'm not sure it's the same issue... in the case of trying to follow in the instructions on https://docs.flutter.dev/platform-integration/macos/c-interop/, the Runner.xcworkspace folder actually doesn't exist.