#android #ios #flutter
#Android #iOS #трепетать
Вопрос:
Я не могу запустить свое приложение Flutter на iPhone, хотя оно хорошо запускается на эмуляторах iOS и Android/устройствах
XCode: v12.5.1
и вот полный вывод Android Studio :
gt; Launching lib/main.dart on iPhone in debug mode... Legacy build system gt; detected, removing gt; /Users/truc/StudioProjects/truc/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings gt; Automatically signing iOS for device deployment using specified gt; development team in Xcode project: VU929CKC2Q Running Xcode build... gt; Xcode build done. gt; 59,3s Failed to build iOS app Error output from Xcode build: ↳ gt; 2021-11-29 13:07:45.010 xcodebuild[92092:2943731] DVTAssertions: Warning in gt; /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-18108/DTDeviceKitBase/DTDKRemoteDeviceData.m:371 gt; Details: (null) deviceType from 00008030-0008252C0185402E was NULL when -platform called. gt; Object: lt;DTDKMobileDeviceToken: 0x7fafa1b7f0c0gt; gt; Method: -platform gt; Thread: lt;NSThread: 0x7faf9ef4f360gt;{number = 3, name = (null)} gt; Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide. gt; ** BUILD FAILED ** gt; gt; gt; Xcode's output: ↳ gt; note: Using new build system gt; note: Building targets in parallel gt; note: Planning build gt; note: Analyzing workspace gt; note: Constructing build description gt; note: Build preparation complete gt; /Users/truc/StudioProjects/truc/ios/Pods/Pods.xcodeproj: gt; warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set gt; to 8.0, but the range of supported deployment target versions is 9.0 gt; to 14.5.99. (in target 'Reachability' from project 'Pods') gt; /Users/truc/StudioProjects/truc/ios/Pods/Pods.xcodeproj: gt; warning: The iOS deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set gt; to 8.0, but the range of supported deployment target versions is 9.0 gt; to 14.5.99. (in target 'MTBBarcodeScanner' from project 'Pods') gt; error: Cycle inside Runner; building could produce unreliable results. gt; Cycle details: gt; → Target 'Runner': CodeSign /Users/truc/StudioProjects/truc/build/ios/Debug-iphoneos/Runner.app gt; ○ Target 'Runner' has copy command from '/Users/truc/StudioProjects/truc/build/ios/Debug-iphoneos/Runner.app' gt; to gt; '/Users/truc/StudioProjects/truc/build/ios/Debug-iphoneos/Runner.app/Runner.app' gt; gt; Could not build the precompiled application for the device. gt; gt; Error launching application on iPhone.
Комментарии:
1. Попробуйте изменить цель развертывания в файле Runner и POD.