ipad java identifier,Flutter / macOS - 应用程序仍包含默认签名标识符

在将旧iOS项目的appIcons和launchScreens复制到新项目后,遇到Xcode构建失败的问题。错误提示涉及签名ID、Architectures不匹配以及弃用的API警告。尝试自动签名设备部署时,Xcode使用了特定的开发团队,但出现了'arm64'架构不包含所有必需的'armv7 arm64'的错误。此外,还警告了'UIUserNotificationSettings'已被弃用,建议使用UserNotificationsFramework的UNNotificationSettings。最后,ld命令在寻找 Pods-Runner 库时失败。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我最近将一个旧的扑动项目中的 iOS 文件夹中的一些文件复制到了一个新项目,以便我可以保留 appIcons 和 launchScreens . 现在,当我尝试从 VSCode , Xcode works fine 启动我的代码时出现以下错误 .

我想知道是否有一种方法可以更改某些参数,以便我的签名ID可以替换,但我无法在Xcode的任何地方找到这样做 .

(诺基亚3310只是我用于调试测试的iPhone 6 :))

Launching lib/main.dart on Nokia 3310 in debug mode...

Automatically signing iOS for device deployment using specified development team in Xcode project: **********

Xcode build done.

Failed to build iOS app

Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

Target 'Pods-Runner' of project 'Pods' was rejected as an implicit dependency for 'libPods-Runner.a' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64'

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:

In file included from :1:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:

/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]

didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;

^

In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here

@interface UIUserNotificationSettings : NSObject

^

While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/main.m:1:

In file included from :1:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:

/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]

completionHandler:(nonnull void (^)())completionHandler;

^

void

2 warnings generated.

2 warnings generated.

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:

In file included from :1:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:

/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:80:42: warning: 'UIUserNotificationSettings' is deprecated: first deprecated in iOS 10.0 - Use UserNotifications Framework's UNNotificationSettings [-Wdeprecated-declarations]

didRegisterUserNotificationSettings:(UIUserNotificationSettings*)notificationSettings;

^

In module 'UIKit' imported from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:8:

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIUserNotificationSettings.h:43:12: note: 'UIUserNotificationSettings' has been explicitly marked deprecated here

@interface UIUserNotificationSettings : NSObject

^

While building module 'Flutter' imported from /Users/jake/Desktop/cryptick-master/ios/Runner/AppDelegate.h:1:

In file included from :1:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/Flutter.h:37:

In file included from /Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterAppDelegate.h:11:

/Users/jake/Desktop/cryptick-master/ios/Flutter/Flutter.framework/Headers/FlutterPlugin.h:140:58: warning: this block declaration is not a prototype [-Wstrict-prototypes]

completionHandler:(nonnull void (^)())completionHandler;

^

void

2 warnings generated.

2 warnings generated.

=== BUILD TARGET Runner OF PROJECT Runner WITH CONFIGURATION Debug ===

ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'

ld: library not found for -lPods-Runner

clang: error: linker command failed with exit code 1 (use -v to see invocation)

ld: warning: directory not found for option '-F/Users/jake/Desktop/cryptick-master/ios/Pods/../.symlinks/flutter/ios'

ld: library not found for -lPods-Runner

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could not build the precompiled application for the device.

It appears that your application still contains the default signing identifier.

Try replacing 'com.example' with your signing id in Xcode:

open ios/Runner.xcworkspace

Error launching application on Nokia 3310.

Exited (sigterm)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值