今天,我开始使用fastlane和Xcode收到此错误:
错误ITMS-90783:“缺少包显示名称。Info.plist键CFBundleDisplayName丢失,或者在包标识符为'com.id'的包中具有空值。”
可以,我没有删除此属性。我认为这是苹果方面的错误。
有谁遇到同样的问题,您如何解决?
当我尝试pod repo update和时出现此错误pod install
CDN:无法下载主干 URL: https ://cdn.cocoapods.org/deprecated_podspecs.txt,错误:无法打开到 cdn.cocoapods.org:443 的 TCP 连接(没有到主机的路由 - connect(2) for "cdn.cocoapods.org" 端口 443)
有人知道如何解决这个问题吗?
我正在使用.storekit配置。尝试购买此类产品时出现错误
<SKPaymentQueue:0x600001240ce0>:付款已完成,但出现错误:错误域= ASDErrorDomain代码= 500“未处理的异常”UserInfo = {NSUnderlyingError = 0x600001c62160 {Error Domain = AMSErrorDomain代码= 100“身份验证失败”UserInfo = {NSLocalizedFailureReason =验证凭据调用失败., NSLocalizedDescription=身份验证失败,NSUnderlyingError=0x600001c60960 {Error Domain=com.apple.accounts Code=4“没有身份验证插件来验证 com.apple.account.iTunesStore.sandbox 类型帐户的凭据” UserInfo={NSLocalizedDescription=无身份验证用于验证 com.apple.account.iTunesStore.sandbox 类型帐户凭据的插件}}}},NSLocalizedFailureReason=发生未知错误,NSLocalizedDescription=未处理的异常}
如何解决这个问题?
我在iTunes Connect中有多个团队,希望离开其中一个团队.我无法与该团队的管理员联系.怎么做?
PS 这个答案仅适用于开发者网站.
在部署新Xcode 11 GM Seed 2的ios应用中,苹果返回了错误: ITMS-90683:Info.plist中缺少NSBluetoothAlwaysUsageDescription的目的字符串。
问题是我没有在应用程序中使用蓝牙。也许我不知道。我如何找出为什么需要此许可目的?
我没用 CoreBluetooth.framework
我的应用程序与Firebase服务器连接,也用于发送推送通知.现在,我想更进一步,为通知添加一个动作.在抛出大量教程之后,它仍然不适合我.操作按钮未显示,您可以在此处看到:
这是我的代码:
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
UIApplication.shared.applicationIconBadgeNumber = 0
FirebaseApp.configure()
registerForPushNotifications()
return true
}
func registerForPushNotifications() {
UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) {
(granted, error) in
print("Permission granted: \(granted)")
guard granted else { return }
let viewAction = UNNotificationAction(identifier: "addToCal",
title: "Zum Kalender hinzufügen",
options: [.foreground])
let newsCategory = UNNotificationCategory(identifier: "NEW_SESSION",
actions: [viewAction],
intentIdentifiers: [],
options: [])
UNUserNotificationCenter.current().setNotificationCategories([newsCategory])
self.getNotificationSettings()
}
}
func getNotificationSettings() {
UNUserNotificationCenter.current().getNotificationSettings { (settings) in
print("Notification settings: \(settings)")
guard settings.authorizationStatus == …Run Code Online (Sandbox Code Playgroud) push-notification apple-push-notifications ios firebase swift
我在stackO中看到了这个和答案,但没有找到如何排除文件夹.
我有3个文件夹,有很多.h,.m和.mm,我需要暂时排除它们,但不要删除引用.我怎样才能做到这一点?
在以前的 Xcode 版本中,切换大小写多行缩进是:
switch error {
case .authError,
.decodeError,
.dataNotExists:
return "Error"
}
Run Code Online (Sandbox Code Playgroud)
但现在它坏了:
switch error {
case .authError,
.decodeError,
.dataNotExists:
return "Error"
}
Run Code Online (Sandbox Code Playgroud)
或者
switch error {
case
.authError,
.decodeError,
.dataNotExists:
return "Error"
}
Run Code Online (Sandbox Code Playgroud)
有没有办法来解决这个问题?
我的代码从firebase检索结构化数据,但我不清楚如何从firebase数据对象中获取每个值.我没有在stackoverflow上找到答案,我在这里为其他初学者发布问答.
我的firebase快照对象值:
{
"08AD8779-6EEB-4449-BC77-78A661ADA72E" = {
field1 = "to device id";
field2 = "text message";
};
"EB841471-618C-4C52-8AA0-C20AD2C947AC" = {
field1 = "to device id";
field2 = "text message";
};
}
Run Code Online (Sandbox Code Playgroud)
如何将设备ID(例如"08AD8779-6EEB-4449-BC77-78A661ADA72E")和'field1'和'field2'的值分配给NSString变量?
ios ×6
xcode ×4
swift ×3
firebase ×2
iphone ×2
build ×1
cocoapods ×1
compilation ×1
fastlane ×1
indentation ×1
linker-flags ×1
membership ×1
objective-c ×1
permissions ×1
podfile ×1
project ×1
ssl ×1
storekit ×1
testflight ×1
tvos ×1
xcode11 ×1