使用 pod 安装结构但是得到了/ios/Pods/Fabric/run”: No such file or directory,我在其中添加了运行脚本
“${PODS_ROOT}/Fabric/run” <API KEY> <S KEY>”
Run Code Online (Sandbox Code Playgroud)
已检查构建日志中的显示环境变量,
什么问题无法得到,
这是 pod 版本
pod 'Fabric', '~> 1.7.6'
pod 'Crashlytics', '~> 3.10.1'
Run Code Online (Sandbox Code Playgroud) 我按照此处的说明安装和测试 Firebase Crashlytics:
以下是其中一个步骤中需要完成的操作:
在 Xcode 中,从项目导航中选择 Runner。
选择“构建阶段”选项卡,然后单击“+”>“新建运行脚本阶段”。
将以下内容添加到 Shell 属性下方的“键入脚本...”文本框中:
我按照上面的说明将以下内容粘贴到 XCode 中:
$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase --validate -ai <googleAppId>
$PODS_ROOT/FirebaseCrashlytics/upload-symbols --build-phase -ai <googleAppId>
Run Code Online (Sandbox Code Playgroud)
哦!我<googleAppId>用从 Firebase 获得的真实 AppId 进行更改。
当我再次启动我的应用程序时,出现以下错误:
2021-12-23 19:16:50.044 upload-symbols[31089:256482] Unable to get file attributes for dSYM file at path "/Users/ednuser/Developer/FlutterProjects/MyProject/build/ios/Debug-iphoneos/Runner.app.dSYM/Contents/Resources/DWARF/Runner"
2021-12-23 19:16:51.049 upload-symbols[31089:256482] Unable to get file attributes for dSYM file at path "/Users/ednuser/Developer/FlutterProjects/MyProject/build/ios/Debug-iphoneos/Runner.app.dSYM/Contents/Resources/DWARF/Runner"
2021-12-23 19:16:52.054 upload-symbols[31089:256482] Unable to get file attributes for dSYM file at path "/Users/ednuser/Developer/FlutterProjects/MyProject/build/ios/Debug-iphoneos/Runner.app.dSYM/Contents/Resources/DWARF/Runner"
2021-12-23 19:16:53.060 upload-symbols[31089:256482] …Run Code Online (Sandbox Code Playgroud) 在 github 和 stack 上搜索了很长时间以查找类似错误后,没有一个建议的解决方案帮助我解决此错误。
我尝试了很多东西(有点乱):
这是错误:
** BUILD FAILED **
Xcode's output:
?
/Users/flo/Mobile/we_ll_see/ios/Runner/GeneratedPluginRegistrant.m:10:9: fatal error: module
'cloud_firestore' not found
@import cloud_firestore;
~~~~~~~^~~~~~~~~~~~~~~
1 error generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Constructing build description
Run Code Online (Sandbox Code Playgroud)
需要一些帮助的家伙
我正在尝试使用 Codemagic 在 Windows 中构建 iOS Flutter 应用程序。我在 android studio 中创建了 flutter 项目并将其上传到 github 以便在 Codemagic 中使用它...但是当我尝试构建 iOS 应用程序时,Codemagic 向我抛出此错误:
\nWarning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.\nBuilding com.jmmago.saltApp for device (ios-release)...\nRunning pod install... 16.0s\nRunning Xcode build... \nXcode build done. 124.3s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode\'s output:\n\xe2\x86\xb3\n /Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/barcode_scan-3.0.1/ios/Classes/protos/protos.pb.swift:14:8: error: compiling for iOS 8.0, but module \'SwiftProtobuf\' has a minimum deployment target of iOS …Run Code Online (Sandbox Code Playgroud) 我在这里缺少什么?没有地方可以为 ios 11 编译的指令..
Swift 编译器错误 (Xcode):针对 iOS 11.0 进行编译,但模块“PhoneNumberKit”的最低部署目标为 iOS 12.0:/Users/aris/Library/Developer/Xcode/DerivedData/Runner-cmtnerpxiupormgiakqsqxlnezts/Build/Intermediates.noindex/ArchiveIntermediates /Runner/Build ProductsPath/Release-iphoneos/PhoneNumberKit/PhoneNumberKit.framework/Modules/PhoneNumberKit.swiftmodule/arm64-apple-ios.swiftmodule /Users/aris/.pub-cache/hosted/pub.dev/libphonenumber_plugin-0.3.2 /ios/Classes/SwiftLibphonenumberPlugin.swift:2:7
我尝试过的事情:
我正在使用 flutter TTS 插件制作一个简单的文本转语音应用程序,并在我的物理 iPhone 和 iPad 上运行它进行调试。
\n我尝试用谷歌搜索它,flutter 的 github 存储库说我应该运行 flutteranalyze,我就这么做了,但它说没有发现问题。所以我不知道该怎么办。我认为这是 xcode 的问题。
\n这是我的错误:
\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n ** BUILD FAILED **\n\n\nXcode's output:\n\xe2\x86\xb3\n <module-includes>:1:9: note: in file included from <module-includes>:1:\n #import "Headers/flutter_tts-umbrella.h"\n ^\n /Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support\n Files/flutter_tts/flutter_tts-umbrella.h:13:9: note: in file included from\n /Users/ragz/Desktop/Desktop/Development/Projects/flutter/useless_app/ios/Pods/Target Support\n Files/flutter_tts/flutter_tts-umbrella.h:13:\n #import "FlutterTtsPlugin.h"\n ^\n /Users/ragz/.pub-cache/hosted/pub.dartlang.org/flutter_tts-1.0.0/ios/Classes/FlutterTtsPlugin.h:1:9: error:\n 'Flutter/Flutter.h' file not found\n #import <Flutter/Flutter.h>\n ^\n <unknown>:0: error: could not build Objective-C module 'flutter_tts'\n note: Using new build system\n note: …Run Code Online (Sandbox Code Playgroud) ios ×6
flutter ×5
crashlytics ×2
firebase ×2
xcode ×2
codemagic ×1
objective-c ×1
react-native ×1
swift ×1