问题标签 [xcode11.4]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
swift - 已发布值上的 SwiftUI toggle() 函数停止使用 Swift 5.2 触发 didSet
我刚刚将我的 Xcode 从 11.3 更新到 11.4,我用 SwiftUI 编写的项目开始表现不同。我曾经为布尔值调用toggle()
函数,它曾经触发didSet
属性观察器,但是,它不再工作了。
假设我们有一个State
名为 的属性isSettingOn
。我曾经这样称呼它:
isSettingOn.toggle()
这触发didSet
了财产的观察者。现在,只有当我这样称呼时:
isSettingOn = true
这是工作。
我的项目都是基于这种行为,现在这种变化基本上破坏了一切。有谁知道我在这里是否真的做错了什么?
编辑:
添加了演示代码:
ios - Xcode 11.4 - 终端介绍
Xcode 11.4 发行说明介绍了Xcode 11.4现在有新选项可以选择Terminal而不是Xcode 的 Console。但是,我无法在Xcode -> Scheme Editor 的 Options 选项卡中找到终端选项
它实际上是否像 VSCode(在调试区域中)一样可用?如果是这样,如何启用此选项?
ios - 如果未从应用商店安装,如何更新 Xcode
对不起,我已经从一个 zip 文件而不是从应用商店安装了 Xcode 11.3,现在 Xcode 11.4 就在这里,我需要它与 ios 13.4 一起工作,所以如何在不从苹果下载再次下载整个 Xcode 的情况下更新它?.. .
swift - PromiseKit 编译错误
我是新手,PromiseKit
但是我无法获得一些非常基本的工作。考虑一下:
以下给了我每一行的错误:
无法将类型的值转换
Promise<Bool>
为闭包结果类型Guarantee<()>
我究竟做错了什么?我一直在尝试各种组合,但似乎没有任何效果。我在PromiseKit 6.13
。
xcode - Xcode项目中可编辑的Swift包?
我正在 Xcode 中开发几个不同的应用程序,并且我使用 Swift 包作为我的“通用”库。在每个项目中,我通过转到项目的“Swift Packages”(“Info”和“Build Settings”旁边)并输入本地“file:///...”url 来添加通用 Swift 包。这检查了一个只读版本。一切都运行良好,但如果我对常用文件进行大量编辑,就会很烦人。我必须:
- 切换到另一个 Xcode 窗口,其中 Swift 包以读写模式打开。
- 编辑文件,将它们提交到 git,标记提交
- 回到应用程序项目,菜单栏 > 文件 > Swift 包 > 重置包缓存(假设我移动了标签,而不是创建一个新标签)
有没有办法简化这个,所以我可以编辑和编译 Swift 包中的文件,而不必每次都执行 git 步骤?
ios - Xcode 11.4 编译错误“未知选项:-platform_version”
在我将 MBP 更新为 10.15.4 和 Xcode 11.4.1 后,构建错误消失了。还是不知道。
我的项目在 Xcode 11.3.1 中运行良好。当我将 Xcode 更新到 11.4 时,构建时出现此错误。
我删除了派生数据并重建,错误仍然存在。
我不知道哪里错了,有人可以给我一些建议吗?
以下是关于我的项目的一些信息:
同时使用 Objective-C 和 Swift
使用 Cocoapods (v1.9.1)
更多构建如下:Ld /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/Mars.app/Mars normal x86_64(在项目“Mars”的目标“Mars”中) cd /Users/haizi/Mars/Mars_Repo/Mars /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -target x86_64-apple-ios10.0-simulator -isysroot /Applications/Xcode .app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4。sdk -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/ Debug-iphonesimulator/AFNetworking -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/AMKLocaleDescription -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars- erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/APNumberPad -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/CYLTabBarController -L/Users/haizi/Library/Developer/ Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/ClusterKit-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/CocoaLumberjack -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products /Debug-iphonesimulator/DAAlertController -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/DZNEmptyDataSet -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars -erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/FDFullscreenPopGesture -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/GPUImage -L/Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/GVUserDefaults-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/IGListDiffKit -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products /Debug-iphonesimulator/IGListKit -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/IQKeyboardManager -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars -erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/JXCategoryView -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/LEEAlert -L/Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/MBProgressHUD-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/MGSwipeTableCell -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products /Debug-iphonesimulator/MJRefresh -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/Masonry -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars -erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/MessageThrottle -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/QMUIKit -L/Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/Qiniu-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/Realm -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products /Debug-iphonesimulator/SDWebImage -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/SDWebImageWebPCoder -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars -erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/SVProgressHUD -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/SensorsAnalyticsSDK -L/Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/YHExplorer-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/YH_Analytics -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products /Debug-iphonesimulator/YH_AntiCrash -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/YH_Lumberjack -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars -erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/YYKit -L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/hpple -L/Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/libwebp-L/Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/pop -L/Users/haizi/Mars/Mars_Repo/Mars/Pods/BaiduMapKit/BaiduMapKit/thirdlibs -L /Users/haizi/Mars/Mars_Repo/Mars/Pods/Realm/core -L/Users/haizi/Mars/Mars_Repo/Mars/Pods/WechatOpenSDK/OpenSDK1.8。7 -L/Users/haizi/Mars/Mars_Repo/Mars/Pods/Weibo_SDK/libWeiboSDK -L/Users/haizi/Mars/Mars_Repo/Mars/Mars/Dependencies/TXUploadSDK/COSSDK -F/Users/haizi/Library/Developer/ Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/BMKLocationKit/framework -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/BaiduMapKit/百度MapKit -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/Bugly -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/LookinServer -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/Mapbox- iOS-SDK/dynamic -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/UMCAnalytics -F/Users/haizi/Mars/Mars_Repo/Mars/Pods/UMCCommon -F/Users/haizi/Mars/Mars_Repo/Mars/ Pods/WoodPeckeriOS -F/Users/haizi/Mars/Mars_Repo/Mars -F/Users/haizi/Mars/Mars_Repo/Mars/Mars/Dependencies/QQSDK -F/Users/haizi/Mars/Mars_Repo/Mars/Mars/Player-F/Users/haizi/Mars/Mars_Repo/Mars/Mars/Dependencies/TXVideoSDK -F/Users/haizi/Mars/Mars_Repo/Mars/Mars/Dependencies/TXUploadSDK/COSSDK -F/Users/haizi/Mars/Mars_Repo/Mars /Mars/Dependencies -F/Users/haizi/Mars/Mars_Repo/Mars/Pods -filelist /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/Mars.build/Debug-iphonesimulator /Mars.build/Objects-normal/x86_64/Mars.LinkFileList -Xlinker -rpath -Xlinker /usr/lib/swift -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -dead_strip -Xlinker -object_path_lto -Xlinker /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/Mars.build/Debug-iphonesimulator/Mars。build/Objects-normal/x86_64/Mars_lto.o -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -flto=thin -Xlinker -cache_path_lto -Xlinker /Users/haizi/Library/Developer /Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/LTOCache -L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator -L/usr/lib/swift -Xlinker -add_ast_path -Xlinker /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/Mars.build/Debug-iphonesimulator/Mars.build/Objects-normal/x86_64/Mars.swiftmodule -ObjC -lAFNetworking -lAMKLocaleDescription -lAPNumberPad -lCYLTabBarController -lClusterKit -lCocoaLumberjack -lDAAlertController -lDZNEmptyDataSet -lFDFullscreenPopGesture -lGPUImage -lGVUserDefaults -lIGListDiffKit -lIGListKit -lIQKeyboardManager -lJXCategoryView -lLEEAlert -lMBProgressHUD -lMGSwipeTableCell -lMJRefresh -lMasonry -lMessageThrottle -lQMUIKit -lQiniu - lRealm -lSDWebImage -lSDWebImageWebPCoder -lSVProgressHUD -lSensorsAnalyticsSDK -lWeChatSDK -lWeiboSDK -lYHExplorer -lYH_Analytics -lYH_AntiCrash -lYH_Lumberjack -lYYKit -lc++ -lcrypto -lhpple -licucore -llibwebp -lpop -lrealmcore-ios -lsqlite3 -lsqlite3。0 -lssl -lxml2 -lz -framework AVFoundation -framework Accelerate -framework AdSupport -framework AssetsLibrary -framework AudioToolbox -framework BMKLocationKit -framework BaiduMapAPI_Base -framework BaiduMapAPI_Cloud -framework BaiduMapAPI_Map -framework BaiduMapAPI_Search -framework BaiduMapAPI_Utils -framework Bugly -framework CoreFoundation -framework CoreGraphics -框架 CoreImage -framework CoreLocation -framework CoreMedia -framework CoreMotion -framework CoreTelephony -framework CoreText -framework Foundation -framework ImageIO -framework LookinServer -framework MapKit -framework Mapbox -framework MobileCoreServices -framework OpenGLES -framework Photos -framework QuartzCore -framework Security -framework SystemConfiguration -framework UIKit -framework UMAnalytics -framework UMCommon -framework WebKit -framework WoodPeckeriOS -ObjC-fuse-ld=/usr/local/bin/zld -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/Mars。 build/Debug-iphonesimulator/Mars.build/Mars.app-Simulated.xcent -framework Accelerate -lsqlite3 -lc++ -framework QCloudCore -framework QCloudCOSXML -framework CoreData -framework SystemConfiguration -framework Security -framework VideoToolbox -framework AudioToolbox -framework CoreMedia -liconv -lz -lbz2 -framework SGPlatform -framework Photos -framework AVFoundation -lresolv -framework CoreMotion -framework CFNetwork -framework CoreTelephony -framework CoreGraphics -framework QuartzCore -framework TXLiteAVSDK_UGC -lmtasdk -lsqlite3。0 -framework腾讯OpenAPI -framework SGPlayer -lPods-abstract_Mars-Mars -Xlinker -dependency_info -Xlinker /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Intermediates.noindex/Mars.build/Debug-iphonesimulator/ Mars.build/Objects-normal/x86_64/Mars_dependency_info.dat -o /Users/haizi/Library/Developer/Xcode/DerivedData/Mars-erthhpbohmypyefsgyzfzkwzeakm/Build/Products/Debug-iphonesimulator/Mars.app/Mars
ios - 使用 Xcode 11.4 测试 ios 推送通知 - apns 中的链接不起作用
我正在尝试使用新的 Xcode 11.4 功能在 ios 模拟器中测试推送通知。
我的应用同时具有 NotificationService 和 NotificationContent 扩展,可以在向用户显示之前更改消息。
要向模拟器发送通知,我正在使用终端命令:
我的 push.apns 是这样的:
我在屏幕上看到了通知,但似乎“链接”属性不起作用。当我点击推送时,在这种情况下,我希望看到第三个订单的屏幕,但我看到的是应用程序的主屏幕。
如有任何帮助,我将不胜感激。谢谢。
macos - 如何在 macOS High Sierra 10.13.6 上安装 Xcode 11.3?
目前我在macOS High Sierra 10.13.6上使用Xcode 10.1,在 2011 年初配备 4GB RAM 的 MacBook Pro 上。
问题是我无法升级到 macOS Catalina。是否可以在 macOS High Sierra 中安装 Xcode 11.3?或者是否有任何其他安全解决方案可以在我不受支持的 2011 年初 MacBook Pro 中安装 macOS Catalina,然后安装 Xcode 11.3?
请建议一个经过良好测试且安全的解决方案。