-
-
Notifications
You must be signed in to change notification settings - Fork 133
iOS build failed after adding "use_frameworks!" #36
Comments
Which solution did you try from that stackoverflow thread? I've tested setting |
When Allow Non-modular includes in Framework Modules was added the linking error happens as @ailic88 noted: |
So, I have managed to reproduce this on clean projects.
Flutter module pubspec.yaml:
Flutter module Podfile:
Test iOS project Podfile:
|
You are manually importing a Can you test the following steps as workaround? You don't need to set In your test application: 1. Create Modules directory for
2. Download the following modulemap file, unzip and move it inside the Modules directory
3. Delete
4. Delete
5. Go to Build Phases of Pods -> FlutterPluginRegistrant target and add all frameworks under the 6. Go to Build Phases of Pods -> FlutterPluginRegistrant target and add all system libraries/frameworks listed in Step 4 of Importing-iOS-Frameworks guide. 7. Go to Build Phases of Pods -> FlutterPluginRegistrant target and add |
Thanks man!!! |
I'm glad to hear that it worked for you. Well, steps from 1 to 4 are already in the pipeline and will be included in the next release. |
Good to know! I think that README would be fine. Especially for the next person who tries to do this. I think this issue can be closed. And again, thank you for your help! |
You're welcome |
Steps from 1 to 4 are all fixed in |
My podfile:
platform :ios, '9.3'
target 'Runner' do
use_frameworks!
flutter_application_path = '../'
eval(File.read(File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')), binding)
end
pre_install do |installer|
# workaround for CocoaPods/CocoaPods#3289
Pod::Installer::Xcode::TargetValidator.send(:define_method, :verify_no_static_framework_transitive_dependencies) {}
end
When I add "use_frameworks!" in podfile I get follow error.
Pubspec.yaml
Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F203)
After I tried https://stackoverflow.com/questions/27776497/include-of-non-modular-header-inside-framework-module I got this:
The text was updated successfully, but these errors were encountered: