Swift 4.2出来了,我在使用ObjectMapper
和其他一些pod 时在我的项目中收到了这条错误消息:
使用Swift 4.1.2编译的模块无法在Swift 4.1.50中导入
那么如何告诉Xcode开始更新我的项目并将其迁移到Swift 4.2?
我正在使用macOS Mojave Beta(10.14 18A293u)和Xcode 10.0 Beta(10L176w).我创建了一个Swift Playground,我无法导入CreateMLUI
框架以便使用它.我一直收到导入错误.
我尝试过创建iOS Playground和macOS Playground
谁知道我做错了什么?
提前致谢.
我正在尝试安装pod pod install
并收到以下错误:
RuntimeError - [!] Xcodeproj doesn't know about the following attributes {"inputFileListPaths"=>[], "outputFileListPaths"=>[]} for the 'PBXShellScriptBuildPhase' isa.
Run Code Online (Sandbox Code Playgroud)
我正在使用CocoaPods 1.5.3和Xcode 10.
一切都在Xcode 9上运行完美.但在更新到Xcode 10后,模拟器开始出现巨大滞后.超级简单的动画正在以2 fps运行,整个Mac OS超级慢,而Simulator上的动画正在运行.谁知道会发生什么以及如何解决这个问题?任何应用程序或任何标准的iOS应用程序都是相同的可怕的慢.
解释 - 这不是关于我可以用Command⌘+ T切换的慢动作.我在谈论巨大的滞后.当UIView飞行时,它突然出现在另一个位置.不流畅的慢动画.2 fps不是慢动作.它是相同的快速运动,但在2 FPS!
迁移到Swift 4.2后,我遇到了多个错误,其中一个很奇怪.这似乎是Xcode 10中的一个错误,但有没有可用的解决方法?
do {
try AVAudioSession.sharedInstance().setCategory(AVAudioSession.Category.playAndRecord, with: options)
} catch {
NSLog("Could not set audio session category")
}
Run Code Online (Sandbox Code Playgroud)
****'setCategory(_:with :)'在Swift中不可用
短篇小说:Xcode 10设置为Swift 4,但它使用的是Swift 4.2.
长话:我们的项目还没有为Swift 4.2做好准备,因为我们的依赖框架还不是Swift 4.2.但是,我想至少使用Xcode 10.
"swift --version Apple Swift版本4.1.2(swiftlang-902.0.54 clang-902.0.39.2)"
"使用Swift 4.1.2编译的模块无法通过Swift 4.2编译器导入:.../App/Carthage/Build/iOS/RealmSwift.framework/Modules/RealmSwift.swiftmodule/arm64.swiftmodule"
对我来说,这表明我已正确设置了我的Swift版本(4.1.2)并且Xcode仍在尝试使用错误版本的Swift(4.2).
有没有人有关于如何解决这个问题的建议?我错过了什么吗?Xcode错误?
我已更新到Xcode 10并且无法编译我的代码.我从Facebook SDK(FacebookCore)收到以下错误.
参数类型'SDKLoggingBehavior?' 不符合预期类型'序列'
在线
return Set(行为)
我已经使用cocoapods安装了最新的FBSDK.
我将如何解决这个问题,还是等待来自FB的更新SDK?
extension SDKSettings {
/**
Current logging behaviors of Facebook SDK.
The default enabled behavior is `.DeveloperErrors` only.
*/
public static var enabledLoggingBehaviors: Set<SDKLoggingBehavior> {
get {
let behaviors = FBSDKSettings.loggingBehavior().flatMap { object -> SDKLoggingBehavior? in
if let value = object as? String {
return SDKLoggingBehavior(sdkStringValue: value)
}
return nil
}
return Set(behaviors)
}
set {
let behaviors = newValue.map({ $0.sdkStringValue })
FBSDKSettings.setLoggingBehavior(Set(behaviors))
}
}
/**
Enable a particular Facebook SDK …
Run Code Online (Sandbox Code Playgroud) 升级到Xcode 10.0后,调试器无法执行基本功能.调试器问题可能与升级到10.0无关,但我怀疑这是催化剂.
Run Code Online (Sandbox Code Playgroud)Printing description of x x = <could not resolve type>
其次是:
Run Code Online (Sandbox Code Playgroud)note: Swift compiler options for ProjectX conflict with options found in other modules; Switching to a new expression evaluator for ProjectX, old $R variables are lost.
当为任何给定变量选择"查看x的内存"时,会出现"内存视图",但地址为"0x0",视图中的内容绝对为零.
直接使用(lldb)接口,当我尝试打印变量,即po x
打印变量"x"时,我首先给出了关于切换到新的表达式求值程序的消息,但是在第二次执行相同的打印命令时po x
,一个不同的错误表示为
Run Code Online (Sandbox Code Playgroud)error: Swift expressions require OS X 10.10 / iOS 8 SDKs or later.
是的,我在OS X 10.13上,我的iOS SDK是12.0,我模拟各种设备iPad 6,pro 2,air 2,iPhone X,调试器在所有设备上都有完全相同的症状.
我正在尝试使用shell命令使用jenkins管道构建我的应用程序.下面是我用来构建应用程序的命令.
sh 'xcodebuild -workspace projectname.xcworkspace - allowProvisioningUpdates -scheme projectname_UAT -sdk iphoneos - configuration Debug clean build'
Run Code Online (Sandbox Code Playgroud)
以下是我得到的控制台错误.
注意:使用新的构建系统
注意:规划构建
2018-10-11 11:19:36.638 xcodebuild [92399:5181481] DVTPortal:服务''从门户网站遇到意外的结果代码('1100')
2018-10-11 11:19:36.638 xcodebuild [92399:5181481] DVTPortal:错误:
错误域= DVTPortalServiceErrorDomain代码= 1100"您的会话已过期.请登录." UserInfo = {payload = {type = mutable dict,count = 9,
entries =>
0 : responseId = <CFString 0x7ff48deef220 [0x7fff94b6daf0]>{contents = "40d9ad44-c951-49da-b3f3-b3ea434765a1"}
2 : <CFString 0x7fff94a90b58 [0x7fff94b6daf0]>{contents = "protocolVersion"} = QH65B2
3 : <CFString 0x7ff48dea3420 [0x7fff94b6daf0]>{contents = "requestUrl"} = <CFString 0x7ff48de3d9a0 [0x7fff94b6daf0]>{contents = "https://developerservices2.apple.com/services/QH65B2/viewDeveloper.action"}
6 : <CFString 0x7ff48dec8c30 [0x7fff94b6daf0]>{contents …
Run Code Online (Sandbox Code Playgroud) continuous-integration xcodebuild codesign jenkins-pipeline xcode10
xcode10 ×10
xcode ×5
ios ×4
swift ×3
cocoapods ×2
carthage ×1
codesign ×1
createml ×1
createmlui ×1
facebook ×1
lldb ×1
macos-mojave ×1
swift4.1.5 ×1
swift4.2 ×1
xcodebuild ×1