我正在尝试在升级到最新的 Xcode 15 和macOS\xc2\xa0v14 (Sonoma)后构建本机 iOS 项目。早些时候,它在 Xcode 14 中运行良好。
\n在构建项目时,我收到以下错误:
\nFirebase - DT_TOOLCHAIN_DIR 不能用于评估 LIBRARY_SEARCH_PATHS,请改用 TOOLCHAIN_DIR
\nFirebaseAnalytics - DT_TOOLCHAIN_DIR 不能用于评估 LIBRARY_SEARCH_PATHS,请改用 TOOLCHAIN_DIR
\nGoogleMLKit - DT_TOOLCHAIN_DIR 不能用于评估 LIBRARY_SEARCH_PATHS,请改用 TOOLCHAIN_DIR
\n我该如何修复它?
\n我自己尝试了一些选项,并将在下面列出。
\n更新 Xcode 项目中的构建设置以使用 TOOLCHAIN_DIR 而不是 DT_TOOLCHAIN_DIR。
\n打开您的 Xcode 项目:
\n打开遇到生成错误的 Xcode 项目。
导航到构建设置:
\n导航到项目或目标的构建设置。
查找 LIBRARY_SEARCH_PATHS:
\n找到 LIBRARY_SEARCH_PATHS 构建设置。
更新 DT_TOOLCHAIN_DIR:
\n如果您发现对 DT_TOOLCHAIN_DIR 的任何引用,请将其更新为使用 TOOLCHAIN_DIR。
将 …
刚刚将我的 Xcode 升级到 15.0,突然它开始在 RCT_Folly 中出现以下错误
No template named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
这是失败的地方:
结构 hash_base : std::unary_function<T, std::size_t> {};
我尝试删除缓存数据和派生数据并清理构建。也尝试删除 pod 和 node_modules。但没有任何帮助。
更新到 Xcode 15 后,我在尝试构建 React-native 应用程序时收到以下错误。
clang: error: SDK does not contain 'libarclite' at the path '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a'; try increasing the minimum deployment target
Run Code Online (Sandbox Code Playgroud)
最低部署目标是13.0
这是我的Podfile
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
$RNMapboxMapsImpl = 'mapbox'
platform :ios, '13.0'
target 'MyProject' do
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
# to enable hermes on iOS, change `false` to `true` and then install pods
:hermes_enabled => false
)
# ADDED BY ME
def __apply_Xcode_14_3_RC_post_install_workaround(installer)
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
current_target = config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] …Run Code Online (Sandbox Code Playgroud) Xcode 15 beta 不附带 iOS 17 的设备支持文件。我们可以通过任何其他方式在 Xcode 14 上运行 iOS 17 设备
我正在使用 Xcode 15 Beta 开发一个应用程序 + 小部件。该小部件在 iOS 17 Beta 模拟器上按预期工作,但在我的 iOS 17 Beta 设备上运行时,它显示“请采用 containerBackground API”而不是所需的内容。
我四处搜索,只能找到containerBackgroundLocationButton ,但我根本没有使用 Core Location 。有人能指出为什么这里提到它吗?
如果我想为包含 @Binding 的 SwiftUI 视图创建预览,我之前会编写如下内容:
struct SpecialButton_Preview: PreviewProvider {
static var previews: some View {
@State var value: Bool = true
SpecialButton(isOn: $value)
}
}
Run Code Online (Sandbox Code Playgroud)
然而,Xcode 15 现在配备了新语法(#Preview),但当我尝试添加示例状态属性时,它不起作用:
#Preview { // Error: Ambiguous use of 'Preview(_:traits:body:)'
@State var value: Bool = true
SpecialButton(isOn: $value)
}
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
将 XCode 从 14.3 更新到 15.0 后,我遇到此错误,无法在物理设备中禁用“通过网络连接”。
设备也通过电缆连接
如果此复选框为灰色,如何从设备禁用“通过网络连接”。
XCode 15.0版本,设备iPhone 11 iOS 17.0版本
更新:
在 Apple 开发人员上发帖https://developer.apple.com/forums/thread/737875?login=true
更新:
我正在将 xcode 升级到 15,将 ios 升级到 17 版本。但是当我尝试在 iphone 15 pro max 中构建我的 flutter 项目时,出现此错误
\nError (Xcode): Cycle inside Runner; building could produce unreliable results.\nCycle details:\n\xe2\x86\x92 Target 'Runner': CodeSign /Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app\n\xe2\x97\x8b That command depends on command in Target 'Runner': script phase \xe2\x80\x9c[CP] Embed Pods Frameworks\xe2\x80\x9d\n\xe2\x97\x8b That command depends on command in Target 'Runner': script phase \xe2\x80\x9cThin Binary\xe2\x80\x9d\n\xe2\x97\x8b Target 'Runner' has process command with output '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/Info.plist'\n\xe2\x97\x8b Target 'Runner' has copy command from '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/umsi06/Documents/project/devV17Ke18/build/ios/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex'\n\xe2\x97\x8b That command depends on command in …Run Code Online (Sandbox Code Playgroud) 在从 Xcode 开发本机应用程序时,我的应用程序的屏幕变黑,并且 Xcode 卡在启动应用程序并附加到 iPhone 14 Pro 上,如下图所示:
当我的应用程序的屏幕变黑时,模拟器仍然正常工作。如果我终止我的应用程序并重新启动它,它会卡在启动屏幕上。
我在上次更新之前尝试设置罗塞塔石碑,但我遇到了同样的问题。更新 Xcode 和 macOS 后,我什至没有 Rosetta 选项。
我在用:
现在唯一有效的方法是完全终止模拟器的进程,然后从 Xcode 重新启动它。
注意:当我在 iOS 模拟器上从 Android studio 开发flutter应用程序时,一切正常。
更新:09/19/2023:在 Xcode 15.0 公开版本上仍然相同。
下载 Xcode beta 并尝试安装 iOS 17.0 模拟器后,弹出一条错误消息:“失败 - 使用 CoreSimulator 注册模拟器运行时失败。”
我遇到过这个问题的其他解决方案,但作为这个领域的新手,我无法自己解决它。
我有超过 18GB 的可用存储空间,并多次尝试删除并重新下载 Xcode-beta。
如果有人能够帮助我解决这个问题,我将不胜感激!