我的 iOS 应用程序使用故事板作为 UI,并使用自定义色调作为导航栏的背景颜色。
我已经在 Xcode 13 beta 5 上测试了我的应用程序,导航栏为“白色”,并且导航栏上的文本不可见。
在https://developer.apple.com/forums/thread/682420的苹果开发者论坛中,它指出“在 iOS 15 中,UIKit 已将scrollEdgeAppearance(默认情况下会生成透明背景)的使用扩展到所有导航栏”。要恢复旧的外观,您必须采用新的 UINavigationBar 外观 API
我将以下代码(来自上面的链接)添加到应用程序委托“application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions”:
if #available(iOS 13, *) {
let navigationController = UINavigationController(navigationBarClass: nil, toolbarClass: nil)
let navigationBar = navigationController.navigationBar
let appearance = UINavigationBarAppearance()
appearance.configureWithOpaqueBackground()
appearance.backgroundColor = UIColor(red: 0.0/255.0, green: 125/255.0, blue: 0.0/255.0, alpha: 1.0)
navigationBar.standardAppearance = appearance;
navigationBar.scrollEdgeAppearance = navigationBar.standardAppearance
navigationBar.isTranslucent = false
}
Run Code Online (Sandbox Code Playgroud)
这并不能解决问题。我仍然在故事板编辑器中为导航栏设置了自定义色调。我是否需要删除自定义色调,或者我是否错误地实现了外观 API?
tabBar.barTintColor在 iOS 15 beta 4 中无法更改。
背景。我们在 App Store 中有一个应用程序,每年在新的 iOS 主要版本发布之前,我们都会下载 iOS 测试版并测试我们的应用程序以提前解决问题。
我们的问题。今年,在 iOS 15 beta 4 中进行测试时,我们发现 UITabBarController 的 tabBar 背景颜色变成黑色,导致项目(图标和标题)难以阅读。在我们的代码中,我们有 self.tabBar.barTintColor = .white,这行代码在 iOS 15 中不起作用。
我们的尝试。我在网上搜索并发现了一个类似但不完全相同的问题报告,https://developer.apple.com/forums/thread/682420。我尝试过standardAppearance,但这不是解决方案,因为appearance我无法更改tabBar.tintColor。
Launching lib/main.dart on iPhone 13 Pro in debug mode...\nlib/main.dart:1\nXcode build done. 43.6s\nFailed to build iOS app\nError output from Xcode build:\n\xe2\x86\xb3\n --- xcodebuild: WARNING: Using the first of multiple matching destinations:\n { platform:iOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-iphonesimulator:placeholder, name:Any iOS Simulator Device }\n { platform:iOS Simulator, id:320795B7-1385-4044-B442-87A9808936D9, OS:15.0, name:iPhone 13 Pro }\n { platform:iOS, id:dvtdevice-DVTiPhonePlaceholder-iphoneos:placeholder, name:Any iOS Device }\n { platform:iOS, id:00008101-000825EC3AE1001E, name:leobidoous iPhone, error:Device is busy (Making leobidoous iPhone ready for development, Processing cache …Run Code Online (Sandbox Code Playgroud) 我昨天将 iPhone 更新到了 iOS 15.0,我想在 Xcode(版本 12.5.1)中构建。\n但是在 Xcode 中它显示“iPhone(不支持的操作系统版本)”,当我尝试构建(命令 + R)时,我得到错误:
\n\n\nXcode 不支持 iPhone\xe2\x80\x99s iOS 15.0 (19A346)。
\n
有没有办法在不降级iOS的情况下使用它?
\n该.animation()修饰符在 iOS 15 中已被弃用,但我不确定我是否理解 Xcode 建议的等效项 , 的animation(_:value:)工作原理。
.animation(.easeInOut(duration: 2)) // \xe2\x9a\xa0\xef\xb8\x8f'animation' was deprecated in iOS 15.0: Use withAnimation or animation(_:value:) instead.\nRun Code Online (Sandbox Code Playgroud)\n我如何更改我的代码以消除警告?
\n我正在尝试在 Xcode13 上运行一个项目,在运行 pod cache clean --all、删除派生数据并运行 pod 更新后。当我清理项目并构建它时,出现以下错误:
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler (in target 'Alamofire' from project 'Pods')
cd /Users/aimoresa/MyProject-iOS/Pods
export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
export SDKROOT\=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc -incremental -module-name Alamofire -Onone -enable-batch-mode -enforce-exclusivity\=checked @/Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Alamofire.SwiftFileList -DDEBUG -D COCOAPODS -suppress-warnings -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk -target x86_64-apple-ios10.0-simulator -g -module-cache-path /Users/aimoresa/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -Xfrontend -serialize-debugging-options -enable-testing -index-store-path /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Index/DataStore -swift-version 5 -I /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Products/Debug-iphonesimulator/Alamofire -F /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Products/Debug-iphonesimulator/Alamofire -c -j4 -output-file-map /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Alamofire-OutputFileMap.json -parseable-output -serialize-diagnostics -emit-dependencies -emit-module -emit-module-path /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Alamofire.swiftmodule -Xcc -I/Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Alamofire-generated-files.hmap -Xcc -I/Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Alamofire-own-target-headers.hmap -Xcc -I/Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Alamofire-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/aimoresa/Library/Developer/Xcode/DerivedData/LinkProject-bwzldrnlucfenpavteypbjybxdky/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/all-product-headers.yaml -Xcc …Run Code Online (Sandbox Code Playgroud) 我最近更新到了新的 iOS 15,在 Xcode 中构建并运行我的应用程序后,同时使用与 iOS 15 安装之前相同的开发者帐户登录,我收到以下消息:
\n\n\n无法完成操作\xe2\x80\x99。无法启动 com.xyz.xyz.xyz\n因为它的代码签名无效、权限不足或\n它的配置文件尚未受到用户的明确信任。
\n
和错误日志:
\n\n\n无法启动 \xe2\x80\x9cmy-project0name\xe2\x80\x9d 域:IDEDebugSessionErrorDomain\n代码:3 失败原因:操作无法\xe2\x80\x99 完成。无法\n启动 com.xyz.xyz.xyz,因为它具有无效的代码签名,\n用户未明确信任\n足够的权利或其配置文件。用户信息: {\nDVTRadarComponentKey = 855031;\nIDERunOperationFailingWorker = DBGLLDBLauncher;\nRawUnderlyingErrorMessage = "操作无法\\U2019t 完成。无法启动 com.xyz.xyz.xyz,因为它具有无效的\n代码签名、不充分的权利或其权限配置文件尚未\n被用户明确信任。"; }
\n
系统信息
\n\n\nmacOS 版本 11.6(内部版本 20G165)Xcode 13.0 (19234)(内部版本 13A233)\n时间戳:2021-09-21T12:36:18+02:00
\n
早些时候(在 iOS14 上),可以通过以下方式解决这个问题:
\nSettings.app -> General -> Profile -> Select Profile -> Trust\nRun Code Online (Sandbox Code Playgroud)\n但现在(在 iOS15 上)我实际上无法在该位置找到它。我该如何解决这个问题?
\n[UICollectionViewRecursion] cv == 0x10481a000 禁用递归触发日志记录
在 Safari iOS15 中,默认情况下,地址栏固定在视口的底部。正如iOS 15 Safari 浮动地址栏所解释的,您可以使用padding-bottom: env(safe-area-inset-bottom)它来确保内容显示在其上方。
但是,如果键盘可见,则环境变量不起作用,因为浮动地址栏显示在键盘上方,并且它会清除视口的底部。这可能会导致某些内容隐藏在其下方。
这是该问题的简单演示:https ://pmusaraj.github.io/ios15-bottom-bar2.html
在 iOS 14 及更低版本或在 Safari 设置为在顶部显示地址栏的 iOS15 上,当文本区域处于焦点状态时,您可以看到提交按钮。在默认的iOS15上,你不能,因为设备返回的视口高度不包括浮动地址栏。
更新:WebKit 错误报告https://bugs.webkit.org/show_bug.cgi?id=229876
由于 ATT 请求未出现,Apple 审核人员刚刚拒绝了我的应用程序:“在 iOS 15.0.1 上审核时,我们无法找到应用程序跟踪透明度权限请求。”
我的代码如下所示:
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { (status) in
//print("IDFA STATUS: \(status.rawValue)")
FBAdSettings.setAdvertiserTrackingEnabled(true)
}
}
Run Code Online (Sandbox Code Playgroud)
我在 AppDelegatedidFinishLaunchingWithOptions和viewDidLoad. ATT 权限请求出现在 iOS 14 上,但不在 iOS 15 中。