firstfloorsoftware / flutter_sodium

Flutter bindings for libsodium
BSD 3-Clause "New" or "Revised" License
102 stars 46 forks source link

After upgrade to Xcode 10, flutter build fails with "Multiple commands produce..." error #9

Closed kozw closed 5 years ago

kozw commented 5 years ago

Xcode 10 includes a new build system that fails with the following error when building a flutter app with the flutter_sodium plugin:

Multiple commands produce '/[app_folder]/build/ios/Debug-iphonesimulator/Runner.app/Frameworks/Flutter.framework':

Apparently any flutter iOS app with a dependency on CocoaPods will fail with this error. A workaround is available, you either can choose to fall back to the legacy build system, or update the iOS build settings.

Until this is fixed in the flutter tooling, you'll need to apply above workaround for iOS when using flutter_sodium in your flutter app.

ROTGP commented 5 years ago

Just FYI - I'm not experiencing any issues whatsoever with XCode 10 and flutter_sodium. I created the flutter project with swift support (as below), and didn't touch the podfile (it automatically specifies 'use_frameworks'). It built for iOS fine, and works as expected. I'm on Flutter 1.0.0 • channel stable. Thanks for your great work.

flutter create -i swift my_app_name

kozw commented 5 years ago

You are correct, this particular error no longer seem to occur. However, when creating a Flutter app using Obj-C (which is the default), the following workaround is still required.