You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
upgrade to 1.20.1 app can not load the flutter module and creates a new folder #63176
platform :ios,
target "XiaobanParent" do
# Uncomment thisline if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for khb
pod 'SDWebImage', '5.0.0'
pod 'WechatOpenSDK', '1.8.7'
pod 'AFNetworking', '3.2.0'
pod 'Masonry', '1.1.0'
#pod 'PLMediaStreamingKit'
pod 'PLPlayerKit'
pod 'AMap3DMap', '6.6.0'
pod 'AMapSearch', '6.9.0'
pod 'AMapLocation'
pod 'RongCloudIM/IMLib', '2.8.32'
pod 'RongCloudIM/IMKit', '2.8.32'
pod 'GTSDK', '2.2.0.0'
pod 'SDAutoLayout'
pod 'ReactiveObjC'
pod 'JJException', '0.2.8'
pod 'BAPickView', '1.1.9'
pod 'TZImagePickerController'
pod 'CYLTabBarController', '~> 1.29.0'
pod 'SDCycleScrollView','>= 1.80'
# Pods for iOSFlutterHybrid
install_all_flutter_pods(flutter_application_path)
it seems like the iOS load the flutter engine module to the new floder(User),but i can't find the problem why "pod install" create the new floder(User)
I fixed up the App.framework path problem (which #63568 also does) and it still doesn't embed the App.framework into the resulting host app, though it does make the phantom /User/ directory go away. The Flutter script doesn't run any flutter code, it just bails at flutter_export_environment.sh: line 8: inherited: command not found. When I escape the export "OTHER_LDFLAGS=$(inherited) -framework Flutter" parenthesis, it embeds as expected.
Interesting, for me it would still make App.framework after printing that error:
<my directory>/app/.ios/Flutter/flutter_export_environment.sh: line 8: inherited: command not found
Project<my directory>/app built and packaged successfully.
And the app ran fine, but I'm still using Xcode 11.
@szotp you're right. I updated #63412 to just fix the path issue and make the test more complete. The tests pass, and in my own local test I see the embedded App.framework.
Would you mind reviewing and validating that PR works? I appreciate that you already did #63568, I fixed it in a slightly different way.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
TahaTesser commentedon Aug 7, 2020
Hi @beydeng

Do you have any custom pods in your podfile i am unable to reproduce the issue, app runs fine
flutter doctor -v
Can you please provide your
podfile, yourpubspec.yamla complete reproducible minimal code sample with steps by steps to reproduceThank you
beydeng commentedon Aug 10, 2020
@TahaTesser

my iOS podfile is
Uncomment this line to define a global platform for your project
flutter_application_path = '../flutter_module/'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
platform :ios,
target "XiaobanParent" do
# Uncomment thisline if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for khb
pod 'SDWebImage', '5.0.0'
end
beydeng commentedon Aug 10, 2020
I can't find any problem in my app...
beydeng commentedon Aug 10, 2020
beydeng commentedon Aug 10, 2020
it seems like the iOS load the flutter engine module to the new floder(User),but i can't find the problem why "pod install" create the new floder(User)

[-]As I upgrade to 1.20.1,my app can not run[/-][+]As I upgrade to 1.20.1,my app can not load the flutter module[/+]beydeng commentedon Aug 10, 2020
As i switch V17.5,it's runs fine.
TahaTesser commentedon Aug 10, 2020
I can reproduce this issue, it creates this new folder when running native app with flutter module when using your pod files
test_projects.zip
flutter doctor -v
flutter doctor -v
7 remaining items
chinmaygarde commentedon Aug 10, 2020
cc @jmagman
jmagman commentedon Aug 12, 2020
I fixed up the App.framework path problem (which #63568 also does) and it still doesn't embed the App.framework into the resulting host app, though it does make the phantom
/User/directory go away. The Flutter script doesn't run anyfluttercode, it just bails atflutter_export_environment.sh: line 8: inherited: command not found. When I escape theexport "OTHER_LDFLAGS=$(inherited) -framework Flutter"parenthesis, it embeds as expected.szotp commentedon Aug 12, 2020
Interesting, for me it would still make App.framework after printing that error:
And the app ran fine, but I'm still using Xcode 11.
jmagman commentedon Aug 12, 2020
@szotp you're right. I updated #63412 to just fix the path issue and make the test more complete. The tests pass, and in my own local test I see the embedded App.framework.
Would you mind reviewing and validating that PR works? I appreciate that you already did #63568, I fixed it in a slightly different way.
jmagman commentedon Aug 12, 2020
The workaround is to use
beta. It's only a few commits behindstable. The regression was introduced in #62372.szotp commentedon Aug 12, 2020
Another workaround: make App.framework manually before running pod install:
github-actions commentedon Aug 13, 2021
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.