Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frameworks contains incomplete bitcode #50205

Closed
isacjunior opened this issue Feb 5, 2020 · 11 comments
Closed

Frameworks contains incomplete bitcode #50205

isacjunior opened this issue Feb 5, 2020 · 11 comments
Labels
a: build Building flutter applications with the tool a: existing-apps Integration with existing apps via the add-to-app flow P2 Important issues not at the top of the work list platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.

Comments

@isacjunior
Copy link

isacjunior commented Feb 5, 2020

Steps to Reproduce

  1. Create a module
  2. Create frameworks to embed in iOS application using flutter build ios-framework --cocoapods
  3. Included Release frameworks and build using BUCK.
  4. Upload .ipa to TestFlight using step upload_to_testflight in fastlane .

Expected results:
Success upload to TestFlight

Actual results:

[01:16:58]: [Transporter Error Output]: ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'iOSApp.app/Frameworks/App.framework/App' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[01:16:58]: [Transporter Error Output]: ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'iOSApp.app/Frameworks/path_provider.framework/path_provider' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
[01:16:58]: [Transporter Error Output]: ERROR ITMS-90208: "Invalid Bundle. The bundle iOSApp.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."
[01:16:58]: Transporter transfer failed.
[01:16:58]: 
[01:16:58]: ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'iOSApp.app/Frameworks/App.framework/App' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
ERROR ITMS-90668: "Invalid Bundle Executable. The executable file 'iOSApp.app/Frameworks/path_provider.framework/path_provider' contains incomplete bitcode. To compile binaries with complete bitcode, open Xcode and choose Archive in the Product menu."
ERROR ITMS-90208: "Invalid Bundle. The bundle iOSApp.app/Frameworks/App.framework does not support the minimum OS Version specified in the Info.plist."

flutter version : v1.13.6

@VladyslavBondarenko VladyslavBondarenko added a: build Building flutter applications with the tool tool Affects the "flutter" command-line tool. See also t: labels. platform-ios iOS applications specifically labels Feb 6, 2020
@jmagman
Copy link
Member

jmagman commented Feb 6, 2020

Hopefully fixed with #49102, which made it into 1.14.4, which is on the beta channel. Can you run flutter upgrade and try again?

@jmagman jmagman added a: existing-apps Integration with existing apps via the add-to-app flow waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds labels Feb 6, 2020
@jmagman jmagman added this to Awaiting triage in Add-to-app - iOS tool review via automation Feb 6, 2020
@jmagman jmagman added this to Awaiting triage in Tools - existing app integration review via automation Feb 6, 2020
@jmagman jmagman moved this from Awaiting triage to Engineer reviewed in Add-to-app - iOS tool review Feb 6, 2020
@jmagman jmagman moved this from Awaiting triage to Engineer reviewed in Tools - existing app integration review Feb 6, 2020
@isacjunior
Copy link
Author

isacjunior commented Feb 7, 2020

I try to run with flutter version: v1.14.6 in channel beta but I receive this error:

[✓] Flutter (Channel beta, v1.14.6, on Mac OS X 10.14.6 18G2022, locale en-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
[✓] Android Studio (version 3.5)
[✓] VS Code (version 1.41.1)
[✓] Connected device (1 available)
flutter build ios-framework --cocoapods
Building frameworks for com.example.app in debug mode...
 ├─Creating Flutter.podspec...                                       2ms

Oops; flutter has exited unexpectedly: "NoSuchMethodError: The method 'getLicenseFile' was called on null.
Receiver: null
Tried calling: getLicenseFile()".

@no-response no-response bot removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Feb 7, 2020
@jmagman
Copy link
Member

jmagman commented Feb 7, 2020

I reproduced the getLicenseFile crash. --cocoapods has a unit test, needs an integration test.

@jmagman
Copy link
Member

jmagman commented Feb 7, 2020

I created #50364 to track the new crash and write an integration test.

@thiago-mendes-ifood
Copy link

I solved the problem with this solution, I don't know if it's the best approach, but it works.

@jmagman
Copy link
Member

jmagman commented Feb 7, 2020

I solved the problem with this solution, I don't know if it's the best approach, but it works.

I don't think that will work, the cache is still nil so the podspec URL isn't correct. I just put out #50370 for review. Should be available in master shortly.

@jmagman
Copy link
Member

jmagman commented Feb 7, 2020

#50370 is now available on the master channel.

@thim
Copy link

thim commented Feb 8, 2020

I solved the problem with this solution, I don't know if it's the best approach, but it works.

I don't think that will work, the cache is still nil so the podspec URL isn't correct. I just put out #50370 for review. Should be available in master shortly.

My solution solved only the first problem(#50205), I'll merge my code with #50370

@jmagman jmagman removed this from Awaiting triage in Mobile Platforms - iOS add-to-app review Feb 27, 2020
@jmagman jmagman added the P2 Important issues not at the top of the work list label Aug 18, 2020
@jmagman
Copy link
Member

jmagman commented Dec 29, 2020

@isacjunior between the fixes in #50370 and #49102 were you able to get your app shipping?

@jmagman jmagman added the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Dec 29, 2020
@pedromassangocode
Copy link

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.

Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.

@pedromassangocode pedromassangocode removed the waiting for customer response The Flutter team cannot make further progress on this issue until the original reporter responds label Jan 20, 2021
@github-actions
Copy link

github-actions bot commented Aug 6, 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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a: build Building flutter applications with the tool a: existing-apps Integration with existing apps via the add-to-app flow P2 Important issues not at the top of the work list platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels.
Projects
Add-to-app - iOS tool review
  
Engineer reviewed
Development

No branches or pull requests

6 participants