flutter / website

Flutter documentation web site
https://docs.flutter.dev
Other
2.82k stars 3.22k forks source link

Provide remedy to missing xcworkspace file on 'Binding to native macOS code using dart:ffi' page #8645

Open gisborne opened 1 year ago

gisborne commented 1 year ago

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

gisborne commented 1 year ago

Looks like the file should be added to the “Link Binary With Libraries” section of Build Phases?

atsansone commented 1 year ago

This appears to be a CocoaPods issue as explained on this page. We'll update the docs to account for this.

tvolkert commented 11 months ago

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.