Tom*_*ard 5 xcode ios android-studio flutter
正如标题所示,我根本无法在 Android Studio 上运行我的 flutter 应用程序(使用 IOS 模拟器)。不知何故,如果我运行并修复 Xcode 本身中的所有 Xcode 错误,我就能够运行它。\n但是,当我稍后尝试在 android studio 中运行它时,会出现许多来自 IOS 构建的错误。没有具体的错误日志,因为警告总是不同的。\n以下是我怀疑的一些原因:
\n我尝试过很多事情,包括:
\nPod deintegrate** & pod install\nCleaning and running\nRestarting the computer\nLegacy build system\n
Run Code Online (Sandbox Code Playgroud)\n\n我尝试过的事情太多了,我只记得其中的一半。这是我尝试从 Android Studio 构建时的最新错误日志:
\n编辑-------- \n这是我最近的错误日志:
\nXcode\'s output:\n\xe2\x86\xb3\n ld: building for iOS Simulator, but linking in dylib built for iOS, file \'/Users/tomasward/Desktop/Fredi/ios/Pods/TwitterKit/iOS/TwitterKit.framework/TwitterKit\' for architecture arm64\n clang: error: linker command failed with exit code 1 (use -v to see invocation)\n note: Using new build system\n note: Planning\n note: Build preparation complete\n note: Building targets in parallel\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'TOCropViewController-TOCropViewControllerBundle\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'FMDB\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'TOCropViewController\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'Reachability\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'AppAuth\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'leveldb-library\' from project \'Pods\')\n /Users/tomasward/Desktop/Fredi/ios/Pods/Pods.xcodeproj: warning: The iOS Simulator deployment target \'IPHONEOS_DEPLOYMENT_TARGET\' is set to 8.0, but the range of supported deployment target versions is 9.0 to 15.0.99. (in target \'GoogleSignIn\' from project \'Pods\')\n\nCould not build the application for the simulator.\nError launching application on iPhone 12 Pro.\n
Run Code Online (Sandbox Code Playgroud)\n
唯一真正重要的错误如下:
\n\n\nld:为 iOS 模拟器构建,但链接到为 iOS 构建的 dylib,文件 \'/Users/tomasward/Desktop/Fredi/ios/Pods/TwitterKit/iOS/TwitterKit.framework/TwitterKit\' 用于架构 arm64
\n
它实际上在说什么?\narm64 是用于物理设备的体系结构,而不是用于模拟器的体系结构。因此,我试图在虚拟设备中模拟无效的体系结构。\n我读到需要从目标项目的构建设置中排除 arm64。但是,缺少的步骤是将其从 Pod 中排除,如下所示:\n
瞧\xc3\xa1!
\n 归档时间: |
|
查看次数: |
3021 次 |
最近记录: |