嗨,我是iphone应用程序开发的新手.我想下载Xcode来开发IPhone应用程序.我在http://developer.apple.com/xcode/上搜索了Xcode软件,但是它们无法使用.
所以请给我Xcode的下载详细信息.
我最近下载了Xcode 10的Beta版本.我打开了一个现有的项目,想在模拟器上启动它.但是一旦模拟器启动,可能整个mac都冻结了.我做不了什么.唯一有效的是移动鼠标.
重新启动我的Mac后,我认为冻结是Xcode 10 Release中的一个测试版漏洞.所以我回到了Xcode 9.4.但是当我使用一个小的操场文件时,它再次发生,同时编译了操场文件.在另一次重启之后,我尝试用我现有的Xcode项目重新创建问题(我用于Xcode 10),但这次模拟器没有任何问题.
我在用:
我的Mac太老了,无法正常使用Xcode,或者你们中的任何人都知道这是否是我能解决的问题?
我正在使用Swift 3.1,XCode 10 Beta,Cocapods 1.5.3
extension WithdrawFlow where Self: ViewcontrollerAnimatedTransition {
func navigate()
...
}
Run Code Online (Sandbox Code Playgroud)
但是编译器在扩展的行崩溃,主要是由于使用了“ where Self:ViewcontrollerAnimatedTransition”
xcode 9工作正常。但是xcode 10给出以下内容:
- 在Flow.swift:9:3发出``navigateInFlow(_ :)''的SIL时
- 而silgen发出Function SIL函数“ @ $ S12module12FilePAASo41ViewcontrollerAnimatedTransitionRzrlE010navigateInE0yySSF”。Flow.swift:9:3的'navigate(_ :)'错误:分段错误:11
有人可以帮忙吗?
谢谢。
我按照integration-into-xcode 中的教程进行操作,它适用于 Xcode 9,在 Xcode 10 中,选择 File -> Project/Workspace Setting,有一个 Build System 选项,默认选择新的构建系统,使用此默认设置, clang 路径始终设置为/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang,ExecPathObfuscator.xcspec 文件中的值不受尊重,如何使其与新构建系统一起使用?
从Xcode 10开始,我
Cannot invoke initializer for type 'Range<_>' with an argument list of type '(Range<String.Index>)'在下面的代码中的返回行收到一条错误消息,这是一个用于在需要时获取子字符串的扩展.
我找到了另一个很好的答案Martin R在[ 无法使用类型'(Range <String.Index>)'的参数列表调用类型'Range <String.Index>'的初始值设定项,但是还没有找到方法解决我的问题.
谢谢你的帮助.
extension String {
subscript (i: Int) -> Character { return self[index(startIndex, offsetBy: i)] }
subscript (i: Int) -> String { return String(self[i] as Character) }
subscript (r: Range<Int>) -> String {
let start = index(startIndex, offsetBy: r.lowerBound)
let end = index(startIndex, offsetBy: r.upperBound)
return String(self[Range(start ..< end)])
}
}
Run Code Online (Sandbox Code Playgroud)
}
切换到Xcode 10(现在必须使用遗留构建系统)后,我开始收到如下所示的错误.在当地,我能够通过几乎清理我能做的一切来修复它们Derived Data / Build etc...
Xcode中的调试和发布运行对我来说运行正常,但是我一直在努力在我们的CI(bitrise)中解决这个问题.
我们使用Fastlane,我们的工作流程有步骤清除派生数据并执行干净构建.
clear_derived_data
build_ios_app(
workspace: "application.xcworkspace",
scheme: "application",
clean: true
)
Run Code Online (Sandbox Code Playgroud)
然而,这些错误仍然存在(这些是很少的例子,大约有30个错误,像这样跟随彼此并指向像达尔文等相同的包...):
? /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h:16:10: could not build module 'Darwin'
#include <sys/types.h>
^~~~~~~~
? /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/usr/include/dispatch/dispatch.h:25:10: could not build module 'Darwin'
#include <Availability.h>
~~~~~~~~^
? /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: could not build module 'CoreFoundation'
#include <CoreFoundation/CoreFoundation.h>
~~~~~~~~^
? /Users/vagrant/git/packages/skimitar-app/node_modules/react-native-firebase/ios/RNFirebase/functions/RNFirebaseFunctions.h:3:9: could not build module 'Foundation'
#import <Foundation/Foundation.h>
~~~~~~~~^
Run Code Online (Sandbox Code Playgroud)
编辑: legazy构建设置是否仍然存在,即如果在我们的Xcode中设置并致力于git,ci是否也会使用遗留构建系统?
在更新到macOS Mojave之前,我的应用程序运行良好且没有错误,但是,我在更新后收到此错误.我已经谷歌搜索了2天,但似乎没有人遇到这个错误.注意:该应用程序确实按预期运行.3D模型文件采用.scn格式.
构建时错误:
/scntool:-1: Could not load ModelIO.framework ((null))
/scntool:-1: Could not load SceneKit.framework ((null))
/scntool:-1: Could not load PhysicsKit.framework ((null))
/scntool:-1: Could not load Jet.framework ((null))
/scntool:-1: Could not load SpriteKit.framework ((null))
/scntool:-1: The document /Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn is not an archived scene.
/scntool:-1: Conversion failed, will simply copy input to output.
/scntool:-1: Copy failed file:///Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn -> file:///Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn error:Error Domain=NSCocoaErrorDomain Code=516 "“Jellyfish.scn” couldn’t be copied to “art.scnassets” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn, NSUserStringVariant=( …Run Code Online (Sandbox Code Playgroud) 我已经升级到Xcode 10,并且意识到#import语句中的文件名补全不能正常工作。这是我项目的一小部分:
当我尝试完成文件名时,会发生以下情况:
我重新启动了Mac,清理了构建文件夹,完成了所有常见的“修复”,尽管没有任何变化。
手动键入文件名时,不会出现任何错误,所有内容均可正确编译,并且代码补全也可以正常工作。
可能是什么问题?有什么我可以做的,还是Xcode 10本质上是坏的?
更新:我在Xcode 10.1上,它仍然坏了。