Flutter没有创建Podfile iOS

时间:2019-12-29 06:57:04

标签: xcode flutter cocoapods

我创建了Flutter项目,但Flutter没有Podfile!我在StackOverFlow中遵循了Link 1Link 2这两个问题,但仍未创建,我尝试再次创建一个新项目,并从Runner.xcworkspace构建并运行我的项目,然后在终端中运行此代码flutter clean并重新运行没有任何改变。

enter image description here

然后我检查了颤振是否有问题并在终端flutter doctor -v中运行:

[✓] Flutter (Channel stable, v1.12.13+hotfix.5, on Mac OS X 10.15.2 19C57,
    locale en)
    • Flutter version 1.12.13+hotfix.5 at /Users/Mustafa/Developer/flutter
    • Framework revision 27321ebbad (3 weeks ago), 2019-12-10 18:15:01 -0800
    • Engine revision 2994f7e1e6
    • Dart version 2.7.0


[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
    • Android SDK at /Users/Mustafa/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-29, build-tools 29.0.2
    • 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.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3, Build version 11C29
    • CocoaPods version 1.8.4

[✓] Android Studio (version 3.5)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 42.1.1
    • Dart plugin version 191.8593
    • Java version OpenJDK Runtime Environment (build
      1.8.0_202-release-1483-b49-5587405)

[✓] VS Code (version 1.41.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.7.1

[✓] Connected device (2 available)
    • Android SDK built for x86 • emulator-5554                        •
      android-x86 • Android 5.1.1 (API 22) (emulator)
    • iPhone 11 Pro Max         • 526C0BE0-C012-4AAA-969B-70DAEA185DDF • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-13-3 (simulator)

• No issues found!

我该如何解决? 我可以通过pod init在终端中手动创建Podfile吗?

0 个答案:

没有答案