我试图在我的iPhone上编译和安装我正在为iOS开发的应用程序,一切都很好,直到在某个时候XCode开始给我的问题,我附上的细节:
Details
Unable to install "Runner"
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653081
Recovery Suggestion: Please check your project settings and ensure that a valid product has been built.
--
There was an internal API error.
Domain: com.apple.dt.MobileDeviceErrorDomain
Code: -402653081
User Info: {
DVTRadarComponentKey = 261622;
MobileDeviceErrorCode = "(0xE8000067)";
"com.apple.dtdevicekit.stacktrace" = (
0 DTDeviceKitBase 0x000000011e735e98 DTDKCreateNSErrorFromAMDErrorCode + 272
1 DTDeviceKitBase 0x000000011e771898 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 160
2 DVTFoundation 0x000000010523f670 DVTInvokeWithStrongOwnership + 76
3 DTDeviceKitBase 0x000000011e7715e4 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1316
4 IDEiOSSupportCore 0x000000011e5ebd40 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.294 + 2928
5 DVTFoundation 0x00000001053687fc __DVT_CALLING_CLIENT_BLOCK__ + 16
6 DVTFoundation 0x000000010536a220 __DVTDispatchAsync_block_invoke + 680
7 libdispatch.dylib 0x000000019592e128 _dispatch_call_block_and_release + 32
8 libdispatch.dylib 0x000000019592fec0 _dispatch_client_callout + 20
9 libdispatch.dylib 0x00000001959376a8 _dispatch_lane_serial_drain + 620
10 libdispatch.dylib 0x00000001959382a4 _dispatch_lane_invoke + 404
11 libdispatch.dylib 0x0000000195942b74 _dispatch_workloop_worker_thread + 764
12 libsystem_pthread.dylib 0x0000000195adb89c _pthread_wqthread + 276
13 libsystem_pthread.dylib 0x0000000195ada5d4 start_wqthread + 8
);
}
--
System Information
macOS Version 11.5.2 (Build 20G95)
Xcode 12.5.1 (18212) (Build 12E507)
Timestamp: 2021-08-21T02:59:59+02:00
我还附上了Android Studio IDE告诉我的内容:
No Provisioning Profile was found for your project's Bundle Identifier or your
device. You can create a new Provisioning Profile for your project in Xcode for
your team by:
1- Open the Flutter project's Xcode target with
open ios/Runner.xcworkspace
2- Select the 'Runner' project in the navigator then the 'Runner' target
in the project settings
3- Make sure a 'Development Team' is selected under Signing & Capabilities > Team.
You may need to:
- Log in with your Apple ID in Xcode first
- Ensure you have a valid unique Bundle ID
- Register your device with your Apple Developer Account
- Let Xcode automatically provision a profile for your app
4- Build or run your project again
It's also possible that a previously installed app with the same Bundle
Identifier was signed with a different certificate.
For more information, please visit:
https://flutter.dev/setup/#deploy-to-ios-devices
Or run on an iOS simulator without code signing
════════════════════════════════════════════════════════════════════════════════
Could not run build/ios/iphoneos/Runner.app on 00008101-001C09912180001E.
Try launching Xcode and selecting "Product > Run" to fix the problem:
open ios/Runner.xcworkspace
Error launching application on iPhone.
在xCode -〉首选项-〉帐户中,我拥有在Apple开发人员门户中注册的帐户,我还在Runner -〉Signing & Capability和Bundler标识符中安排了团队成员
1条答案
按热度按时间gmxoilav1#
试试这一步。
1.备份
ios
文件夹1.删除
ios
文件夹1.键入此命令
flutter create .