尝试使用 Codemagic 为 iOS 构建 Flutter APP 时出现以下错误。我已将签名设置为自动并提供了本文中提到的所有所需凭据
? error: Signing for "Runner" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'Runner' from project 'Runner')
Run Code Online (Sandbox Code Playgroud)
有人可以让我知道在哪里设置开发团队。我正在使用开发编辑器作为 VS 代码在 Windows 机器上构建它。
谢谢
我正在尝试使用 Flutter 为 iOS 和 Android 构建一个简单的应用程序,但是当我尝试在 iPhone 上运行它时应用程序在启动时崩溃(Android 运行良好)。我没有 mac,所以我使用 Codemagic 编译发布版本并部署到 TestFlight,然后从那里安装在 iPhone 上。据我所知,Apple 只在 Xcode 中显示他们的崩溃日志(App Store Connect 在线没有任何内容?),而且由于我没有 Mac,我看不到这些。关于我可能会遇到的任何想法,或者我可以收集哪些信息来调试问题?
谢谢!
编辑:我一直在挖掘更多,看起来崩溃与 Firebase 依赖项有关。如果我创建 Flutter 演示项目 (flutter create),它在 iOS 上运行良好。但是,如果我随后将 Firebase 包添加到 pubspec.yaml,并手动添加 GoogleServices-info.plist,应用程序会在启动时崩溃。(我还没有添加任何使用 Firebase 的代码。)GoogleServices-info.plist 应该与 Xcode 一起添加,但由于我没有 Xcode 或 mac,所以这很困难。这个问题的第二个答案给出了一个建议:Where to save GoogleService-Info.plist in Flutter without Xcode? 我尝试进行这些更改,但得到了相同的结果。有人对在没有 Mac 的情况下添加 Firebase 有什么建议吗?
这是我第一次链接 Codemagic,我尝试将我的 GitHub 链接到商店,然后我收到了此错误,
Publishing failed :| Google Play failed to upload artefacts. The caller does not have permission: { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED" } }
我正在尝试实现一个持续部署系统来构建我的应用程序并使用 codemagic 部署到 Google Play。在本地进行构建工作正常,但在 Codemagic 上远程构建失败。
错误总结:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:stripDebugDebugSymbols'.
> 1 exception was raised by workers:
org.gradle.process.internal.ExecException: A problem occurred starting process 'command '/usr/local/share/android-sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip''
Run Code Online (Sandbox Code Playgroud)
完整日志:
== Building for Android ==
> flutter build appbundle --debug
Running "flutter pub get" in My_Project... 1,655ms
Building with sound null safety
Running Gradle task 'bundleDebug'...
[flutter_background_geolocation] Purging debug resources in release build
Note: Some input files use or override a …Run Code Online (Sandbox Code Playgroud) 我正在尝试在没有 Mac 的情况下在 Codemagic 上构建我的应用程序的 ios 版本。构建失败并显示以下消息。
[!] Automatically assigning platform `iOS` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Run Code Online (Sandbox Code Playgroud)
[!] CocoaPods could not find compatible versions for pod "flutter_facebook_login":
In Podfile:
flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`)
Specs satisfying the `flutter_facebook_login (from `.symlinks/plugins/flutter_facebook_login/ios`)` dependency were found, but they required a higher minimum deployment target.
Run Code Online (Sandbox Code Playgroud)
貌似flutter_facebook_login包的ios版本要求比ios 8高。我想如果我能指定一个更高的ios版本就可以解决了。我该如何解决这个问题?
我正在尝试使用 YAML 工作流程在 Codemagic 上签署 iOS 版本。在本文档之后,我加密并添加了以下环境变量:
运行工作流程时,我收到错误提供的值“ APP_STORE_CONNECT_PRIVATE_KEY 的 VALUE ”无效。如何使这个环境变量值有效?我还尝试为此值添加 base64 编码,但它仍然显示相同的错误。
这是我的 codemagic.yaml 文件:
workflows:
ios-workflow:
name: iOS Workflow
# instance_type: mac_mini
max_build_duration: 120
environment:
groups:
- store
vars:
XCODE_WORKSPACE: "Runner.xcworkspace"
XCODE_SCHEME: "Runner"
BUNDLE_ID: "*MY_BUNDLE_ID*"
flutter: stable
xcode: latest
cocoapods: default
scripts:
- name: Set up keychain to be used for codesigning using Codemagic CLI 'keychain' command
script: |
keychain initialize
- name: Fetch signing files
script: |
# Failing command …Run Code Online (Sandbox Code Playgroud) == Building for iOS ==
> xcode-project use-profiles
Configure code signing settings
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.mobileprovision
Searching for files matching /Users/builder/Library/MobileDevice/Provisioning Profiles/*.provisionprofile
List available code signing certificates in keychain /Users/builder/Library/codemagic-cli-tools/keychains/10-08-22_lujifhgh.keychain-db
Searching for files matching /Users/builder/clone/ios/**/*.xcodeproj
Completed configuring code signing settings
- Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Debug] from project "Runner"
- Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Profile] from project "Runner"
- Using profile "codemaProfile" [cbbc5bb6-06f7-40cf-9559-50e8663dee93] for target "Runner" [Release] from project "Runner"
Generated options …Run Code Online (Sandbox Code Playgroud) 大家好,我想在应用程序商店(个人帐户)上发布我的应用程序 flutter,以便在物理手机上测试它,不幸的是我没有 Mac,所以我必须通过 codemagic,但安装依赖项任务过程中的问题失败并出现错误:
无法从 Apple 开发者门户获取签名文件:对 Apple 开发者门户的请求失败,操作“createProvisioningProfile.action”的结果代码为 35。该团队中当前没有与提供的设备 ID 匹配的 IOS 设备。
我真的不知道问题出在哪里,因为我是第一次在平台上开发。感谢你们对我的帮助!
日志:
== Fetch code signing files from Apple Developer Portal ==
Fetch Development signing files for bundle identifier "*********"
Initializing Apple Developer Portal session with *********@****.com
Using Apple Developer Portal team ********* (*******) to fetch signing files
Found App ID "********" for bundle identifier "******"
Found code signing certificate "Apple Development iOS Push Services: *******************"
Found code signing certificate "iOS Development: *********"
Build failed :|| …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用 codemagic 构建和发布我的 flutter 应用程序以用于开发目的(使用 testmagic 进行测试)(因为我使用的是 Windows 机器)。但每次我构建应用程序时,该步骤build都会失败并显示以下错误:
Unable to export archive: 2020-01-05 05:46:47.914 xcodebuild[1398:9643] [MT] IDEDistribution: -[IDEDistributionLogging _createLoggingBundleAtPath:]: Created bundle at path '/var/folders/r7/d9twdq011sb8d3q1p8f39cdr0000gn/T/Runner_2020-01-05_05-46-47.912.xcdistributionlogs'. error: exportArchive: App.framework does not support provisioning profiles. Error Domain=IDEProvisioningErrorDomain Code=10 "App.framework does not support provisioning profiles." UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=App.framework does not support provisioning profiles., NSLocalizedRecoverySuggestion=App.framework does not support provisioning profiles, but provisioning profile {Name of the App + ID} has been manually specified. Remove this item from the "provisioningProfiles" dictionary in your Export …Run Code Online (Sandbox Code Playgroud) 使用 CodeMagic 构建 iOS 时出现以下错误。
\n Running Xcode build... \nXcode archive done. 14.3s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** ARCHIVE FAILED **\n\n\nXcode\'s output:\n\xe2\x86\xb3\n Writing result bundle at path:\n /var/folders/m7/h1mg7c7x40ddjz6mxjxm3htr0000gn/T/flutter_tools.o4LK5x/flutter_ios_build_temp_dirDQZb2l/temporary_xcresult_bundle\n\n ld: bitcode bundle could not be generated because \'/Users/builder/programs/flutter_2_10_1/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Flutter\' was built without full bitcode. All frameworks and dylibs for bitcode must be generated from Xcode Archive or Install build file \'/Users/builder/programs/flutter_2_10_1/bin/cache/artifacts/engine/ios/Flutter.xcframework/ios-arm64_armv7/Flutter.framework/Flutter\'\n clang: error: linker command failed with exit code 1 (use -v to see invocation)\n note: Using new …Run Code Online (Sandbox Code Playgroud) codemagic ×10
flutter ×9
ios ×5
app-store ×1
bitcode ×1
cicd ×1
code-signing ×1
dart ×1
google-play ×1