自1周以来,我在构建iOS发行版方面遇到了问题。 我使用詹金斯(Jenkins),10月26日,我使用的是较旧的版本(自10月25日起);问题是因为flutter_apns更新(从10月26日开始)。我解决了这个问题。 但是现在当我想构建一个iOS版本时,出现了这个错误:
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Encountered error while building for device.
Android buid发布正常, iOS构建调试正常(我可以在模拟器上运行), iOS版本发行不正常。
颤抖的医生-v:
[✓] Flutter (Channel master, 1.24.0-7.0.pre.51, on Mac OS X 10.15.4 19E287 darwin-x64, locale fr-FR)
• Flutter version 1.24.0-7.0.pre.51 at /Users/apple/developer/flutter
• Framework revision 734d2a22fe (25 hours ago), 2020-11-02 15:23:02 +0530
• Engine revision 3460519398
• Dart version 2.12.0 (build 2.12.0-3.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/apple/Library/Android/sdk
• Platform android-29, build-tools 29.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 12.0.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.0.1, Build version 12A7300
• CocoaPods version 1.10.0
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 44.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] IntelliJ IDEA Ultimate Edition (version 2019.2.3)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin can be installed from:
? https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
? https://plugins.jetbrains.com/plugin/6351-dart
[✓] VS Code (version 1.40.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
? https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (1 available)
• iPhone SE (2nd generation) (mobile) • E5F235B3-2EF4-4EEB-9A4C-8C14FDDE8355 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
• No issues found!
我的依赖性:
environment:
sdk: ">=2.6.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
flutter_svg: ^0.19.1
html_unescape: ^1.0.1+3
moor_flutter: ^2.0.0
package_info: 0.4.0+12
moor: ^2.3.0
dynamic_theme: ^1.0.1
image_picker: ^0.6.7+4
image_cropper: ^1.2.0
flutter_email_sender: ^3.0.1
camera: ^0.5.7+4
animations: ^1.0.0+5
flutter_staggered_animations: ^0.1.2
map_controller:
git:
url: https://github.com/TesteurManiak/map_controller
ref: master
flutter_map_marker_cluster:
git:
url: https://github.com/rorystephenson/flutter_map_marker_cluster.git
ref: master
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^0.1.2
flutter_map: ^0.10.1
http: ^0.12.0+2
scoped_model: ^1.0.1
rxdart: ^0.24.1
preferences: ^4.0.0
location: ^2.3.5
shared_preferences: ^0.5.3+5
url_launcher: ^5.1.0
flutter_full_pdf_viewer: 1.0.6
esys_flutter_share: 1.0.2
dio: 3.0.8
firebase_core: ^0.5.0
firebase_crashlytics: ^0.1.3+3
flutter_secure_storage: ^3.3.1+1
expandable: ^3.0.1
permission_handler: ^4.1.0
path_provider_ex: ^1.0.1
fluttertoast: ^3.1.3
flutter_apns: ^1.4.0
connectivity: ^0.4.6
cloud_firestore: ^0.14.1+2
flutter_matomo:
git:
url: https://gitlab.com/Josstoh/flutter_matomo.git
ref: lower-min-version-iOS
video_player: ^0.10.7
chewie: ^0.9.8+1
provider: ^3.1.0
store_redirect: ^1.0.2
upgrader: ^2.3.0
dev_dependencies:
flutter_test:
sdk: flutter
moor_generator: ^2.1.0
build_runner: null
flutter_launcher_icons: ^0.7.4
flutter_stetho: ^0.5.2
https://github.com/Haliima/xCodeOutput/blob/main/Output%20xcode [链接:xCode输出] [1]
我可以共享XCode>任何ios设备>产品>存档
如果您想了解更多信息,请告诉我。 谢谢您的帮助。我不知道该怎么办。