Я ищу помощь по устранению неполадок, связанных с iOS До сих пор я строил для android, и все, что я сейчас пытаюсь сделать, это получить iOS версию моей сборки на физическом тестовом устройстве (iPhone 6). Может ли кто-нибудь помочь мне решить эту проблему?
Я не смог правильно собрать для iOS. Мне нужно распространить это на одно устройство и я застрял.
Running Xcode build...
Xcode build done. 2.5s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
Xcode's output:
↳
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:9: note: in file included from
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/GeneratedPlug
inRegistrant.h:8:9: error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^
1 error generated.
<unknown>:0: error: failed to emit precompiled header
'/Users/devmandan/Library/Developer/Xcode/DerivedData/Runner-adlvdhrfpbvcfib
sbjlbidozndyp/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging
-Header-swift_3Q69OED7FI3U6-clang_2XEA1BH1JYTWY.pch' for bridging header
'/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridg
ing-Header.h'
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:9: note: in file included from
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:9: note: in file included from
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/GeneratedPlug
inRegistrant.h:8:9: error: 'Flutter/Flutter.h' file not found
#import <Flutter/Flutter.h>
^
1 error generated.
<unknown>:0: error: failed to emit precompiled header
'/Users/devmandan/Library/Developer/Xcode/DerivedData/Runner-adlvdhrfpbvcfib
sbjlbidozndyp/Build/Intermediates.noindex/PrecompiledHeaders/Runner-Bridging
-Header-swift_1NWFT6323SM2-clang_SY43KHBQG5QK.pch' for bridging header
'/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridg
ing-Header.h'
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:9: note: in file included from
/Users/devmandan/AndroidStudioProjects/super_simple/ios/Runner/Runner-Bridgi
ng-Header.h:1:
#import "GeneratedPluginRegistrant.h"
^
note: Using new build system
note: Planning build
note: Constructing build description
Encountered error while building for device.
devmandan@Daniels-Mac-mini super_simple % flutter doctor -v
[✓] Flutter (Channel stable, v1.12.13+hotfix.7, on Mac OS X 10.15.3 19D76, locale en-US)
• Flutter version 1.12.13+hotfix.7 at /Users/devmandan/Desktop/Flutter/flutter
• Framework revision 9f5ff2306b (5 weeks ago), 2020-01-26 22:38:26 -0800
• Engine revision a67792536c
• Dart version 2.7.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /Users/devmandan/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• 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 11.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.3.1, Build version 11C504
• CocoaPods version 1.8.4
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 43.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• iPhone • 3255727ffc2f4f4c863d521bdf7ca3b0c3f499a9 • ios • iOS 12.4.3
• No issues found!
После запуска из проекта fre sh я смог по крайней мере собрать и скомпилировать для тренажер. Однако физическое тестовое устройство не работает. Вот последняя ошибка:
Showing Recent Issues
Build target Runner of project Runner with configuration Debug
CodeSign /Users/devmandan/Library/Developer/Xcode/DerivedData/Runner-fpqccbjmwnwkgjbjbmcqrepctbra/Build/Products/Debug-iphoneos/Runner.app/Frameworks/App.framework (in target 'Runner' from project 'Runner')
cd /Users/devmandan/Desktop/iosbuild/ios
export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate
Signing Identity: "Apple Development: Daniel Legut (3D44YKFC72)"
Provisioning Profile: "iOS Team Provisioning Profile: *"
(aef4fb71-00be-4ddf-841a-d6bb93da028d)
/usr/bin/codesign --force --sign 86943D377B4DBE35EDB94E70619FA76DE82E95E3 --timestamp=none --preserve-metadata=identifier,entitlements,flags /Users/devmandan/Library/Developer/Xcode/DerivedData/Runner-fpqccbjmwnwkgjbjbmcqrepctbra/Build/Products/Debug-iphoneos/Runner.app/Frameworks/App.framework
/Users/devmandan/Library/Developer/Xcode/DerivedData/Runner-fpqccbjmwnwkgjbjbmcqrepctbra/Build/Products/Debug-iphoneos/Runner.app/Frameworks/App.framework: errSecInternalComponent
Command CodeSign failed with a nonzero exit code