我试图在上运行XCode项目。我试着遵循这个页面()上的说明,但是步骤3-运行swift build -X失败了。我知道这个错误:
error: unable to invoke subcommand: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build (No such file or directory)
看起来我已经安装了最新的工具链(见下面的截图)。
我还有XCode 7.3.1和XCode 8测试版。你有什么建议来解决那个问题?
在Xcode 6.3.1上使用多项目工作区--两个Swift框架、应用程序本身和Cocoapods。我可以在模拟器上和我的上成功地构建和运行应用程序,但是当我尝试将它存档时,我得到:
Command failed due to signal: Segmentation fault: 11
这个错误似乎发生在我的两个视图控制器文件上,但我不知道它们有什么问题。尝试从命令行构建。没有结果。我还扰乱了我的构建设置,就像在其他问题中所建议的那样,没有效果。
有没有人经历过同样的问题?无法向应用程序存储或进行测试IPA :(这是生成的堆栈跟踪:
0 swift
我正在将Xcode 7/SWIFT2.2MacOSX项目迁移到Xcode 8/ Swift 3,我在视图控制器类undoManager中遇到了一个问题,MyViewController有一个函数undo。
在Xcode 7/ Swift 2.2中,这种方法工作得很好:
undoManager?.prepareWithInvocationTarget(self).undo(data, moreData: moreData)
undoManager?.setActionName("Change Data)
在Xcode 8/ Swift 3中,使用推荐的模式
这应改为:
if let ta
我按照的说明操作,但我的苹果电脑上的蒸气无法正常工作。下面是我的xcode和swift版本
Xcode 8.0
Build version 8S174q
Apple Swift version 3.0-dev (LLVM 8fcf602916, Clang cf0a734990, Swift 000d413a62)
Target: x86_64-apple-macosx10.9
当我尝试使用此命令安装工具箱时
curl -sL toolbox.qutheory.io | bash
安装不成功,并生成以下消息
⚠️ It looks like your Command Line Tools
如果出现以下错误,xcodebuild将失败:
<unknown>:0: error: unable to execute command: Segmentation fault: 11
<unknown>:0: error: merge-module command failed due to signal (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
MergeSwiftModule normal arm64 /Users/vmanot
一周前,我在Xcode 7.3.1上用几个pod很好地运行了我的项目。但现在我已经升级到Xcode8,当我打开项目时,它要求我自动将代码转换为Swift 3。如果我不转换,在某些pods swift文件中存在2个错误。当我完成转换时,它变成了83个错误!!我应该怎么做才能在Xcode8中很好地运行这个项目?我只使用以下pod:
pod "TextFieldEffects"
pod 'BTNavigationDropdownMenu'
pod 'LTMorphingLabel'
pod 'Material', '~>
我有一个自定义Swift脚本,类似于以下内容:
#!/usr/bin/env xcrun --sdk macosx swift
import Foundation
let path = FileManager.default.currentDirectoryPath
在SWIFT5.1和更低版本上运行得很好,但是更新到SWIFT5.2后,我得到了
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -fronten
我是应用程序开发的初学者。我正在制作一个带有颤振的应用程序,下面的错误发生在用ios构建的时候。
Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code
Swift Compiler Error (Xcode): No such module 'FBSDKCoreKit'
/development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_facebook_auth-4.3.3/ios/Classes/FacebookAu
假设我有以下代码:
protocol A {}
struct B: A {}
func b() -> A {
return B()
}
func f<T where T: A>(t: T) -> T {
return t
}
f(b())
这将导致以下错误(Xcode 6.3 beta 3):
操场执行失败: Test.playground:12:1: error:泛型参数'T‘不能绑定到非@objc协议类型'A’
f(b())
^
Test.playground:8:6: note: in call to function
我正在从颤栗开发IOS应用程序。一切正常,突然间我收到了错误
SwiftCodeGeneration normal arm64 (in target 'DKImagePickerController' from project 'Pods')
cd /Users/lasthoney/development_project/flutter/workspace/CTRON/ios/Pods
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/us
尝试在我的机器上使用Xcode-beta (v9)测试Swift 4,并在将包导入测试项目时遇到问题:
使用swift package init --type executable启动项目
更改了Package.swift并添加了2个项目来进行试验:
Package.swift
// swift-tools-version:4.0
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
我正在将一个项目从Xcode 7 iOS 9 Swift 2转换到Xcode 8 iOS 10 Swift 3。我让Xcode转换到最新版本,它产生了:
let artWork = delegate.musicPlayer.nowPlayingItem?.value(forProperty: MPMediaItemPropertyArtwork)
let imageForButton = (artWork as AnyObject).image(at: CGSize(width: 300, height: 300))
由此产生的代码会使应用程序崩溃并弹出错误:
-_SwiftValue i