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
Not able to generate iOS release build #21073
Comments
#18305 |
@MiguelCatalan could you try using fastlane for a test? Here the relevant part from my lane :beta do
system '(cd ../../ && flutter build ios --release --no-codesign)'
build_app(
workspace: "Runner.xcworkspace",
scheme: "Runner",
export_method: 'app-store',
configuration: 'Release'
)
end |
@chengenzhao you are the man. Indeed was related and the solution worked. But I think that issue should not be closed because I presume it is a bug the tools doesn't generate that file by itself. |
@ened Thanks man, your snippet helps me a lot. |
Using the latest master branch 'flutter doctor -v', KyleWongdeMacBook-Pro:flutter_issue_21073 kylewong$ flutter doctor -v
[✓] Flutter (Channel master, v1.2.2-pre.19, on Mac OS X 10.14.4 18E184e, locale en-CN)
• Flutter version 1.2.2-pre.19 at /Users/kylewong/Codes/Flutter/alibaba-flutter/flutter
• Framework revision 20d9de58d0 (6 hours ago), 2019-02-15 18:43:36 -0800
• Engine revision 033f2072c3
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/kylewong/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
✗ Verify that all connected devices have been paired with this computer in Xcode.
If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.
To update with Brew, run:
brew update
brew uninstall --ignore-dependencies libimobiledevice
brew uninstall --ignore-dependencies usbmuxd
brew install --HEAD usbmuxd
brew unlink usbmuxd
brew link usbmuxd
brew install --HEAD libimobiledevice
brew install ideviceinstaller
• ios-deploy 1.9.4
• CocoaPods version 1.6.0
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 32.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] VS Code (version 1.31.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.23.0 I failed to reproduce this issue using steps described in this issue:
I'm closing this issue now. Feel free to comment below if anyone can reproduce it using the latest master. |
I figured out the problem, all of the deployment targets need to be the same. That is, in the project file, the target, and the pods project as well. |
How to check this deployment targets? |
Any update on this?
I can not release it to AppStore. |
Make sure you open |
For more reference: Make sure to choose |
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 |
Context
This issue is related to #20564, but in that issue, I assumed it was a problem with the project, but now I tested a fresh project getting the same result. So this is why I'm opening a new thread.
I was working before in an old MacBook Pro, using macOS Sierra. I then migrated to one of the new MacBook Pro (15-inch 2018) with High Sierra and the system stopped generating releases archives. I don't know if it is related but it is the only changed piece.
Now I am able to create a project, run in an emulator, run it in a real device and generate the release version for iOS if there is no extra dependency in the
pubspec.yaml
. If I add any flutter dependency, Xcode keeps giving thedevice_info/DeviceInfoPlugin.h file not found
error.I know it is probably something related to my setup, but I tested with other machines with the same configuration, resulting in the same result.
I am not able to generate any release since a month ago. My business is suffering because of this. Please, I beg to anyone point me in the right direction to fix this. I am truly desperate.
Steps to Reproduce
flutter build ios --release
Product -> Scheme -> Runner
andProduct -> Destination -> Generic iOS Device
Product -> Archive
Success, a new build is generated. But there is more.
pubspec.yaml
, let say this oneflutter packages get
pod install
inside theios
directory.flutter build ios --release
Product -> Archive
I get an error
device_info/DeviceInfoPlugin.h file not found
And thats it.
I did the workflow before with both IntelliJ IDEA CE and Ultimate, and both kotlin-swift and ObjectiveC-Java combinations.
Also try using beta, dev, and master channels.
And with cocoapods
1.4.0
,1.5.0
and1.5.3
The text was updated successfully, but these errors were encountered: