website icon indicating copy to clipboard operation
website copied to clipboard

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

Open gisborne opened this issue 2 years ago • 3 comments
trafficstars

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 avatar May 02 '23 20:05 gisborne

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

gisborne avatar May 02 '23 20:05 gisborne

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

atsansone avatar May 23 '23 00:05 atsansone

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.

tvolkert avatar Nov 06 '23 16:11 tvolkert