-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Closed
Labels
platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Hi everyone,
I'm using package_info to display the build number of the app, and am getting the following error on iOS:
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/gabriel/dev/aedo_app/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module 'package_info' not found
@import package_info;
~~~~~~~^~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Planning build
note: Using build description from disk
Could not build the precompiled application for the device.
Steps to Reproduce
Import package_info with version ^0.4.0+12 in a stateful widget and use it like so:
PackageInfo _packageInfo;
@override
void initState() {
super.initState();
PackageInfo.fromPlatform().then((packageInfo) {
setState(() {
_packageInfo = packageInfo;
});
});
}Flutter doctor:
[✓] Flutter (Channel dev, v1.12.16, on Mac OS X 10.15.1 19B88, locale en-CA)
• Flutter version 1.12.16 at /Users/gabriel/dev/flutter
• Framework revision 37f9c54116 (7 days ago), 2019-11-27 11:33:38 -0800
• Engine revision fad1b23c42
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/gabriel/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_202-release-1483-b49-5587405)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.2.1, Build version 11B500
• CocoaPods version 1.8.3
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 41.1.2
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[!] IntelliJ IDEA Ultimate Edition (version 2016.3.5)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.dev/intellij-setup/#installing-the-plugins
✗ This install is older than the minimum recommended version of 2017.1.0.
[✓] VS Code (version 1.40.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.6.0
Metadata
Metadata
Assignees
Labels
platform-iosiOS applications specificallyiOS applications specificallyt: xcode"xcodebuild" on iOS and general Xcode project management"xcodebuild" on iOS and general Xcode project managementtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.