相关疑难解决方法(0)

命令行工具 - 错误 - xcrun:错误:无法找到实用程序"xcodebuild",无法找到开发人员工具或在PATH中

SwiftJSON通过Carthage Dependency Manager为Some Xcode项目构建框架时获取错误.

Sivaramaiahs-Mac-mini:GZipDemoApp vsoftMacmini5 $ carthage更新 - 平台iOS

***获取GzipSwift

***获取SwiftyJSON

***在"3.1.1"查看GzipSwift

***在"3.1.3"下载SwiftyJSON.framework二进制文件

***xcodebuild输出可以在/var/folders/7m/y0r2mdhn0f16zz1nlt34ypzr0000gn/T/carthage-xcodebuild.apLXCc.log中找到

shell任务(/ usr/bin/xcrun xcodebuild -project /Users/vsoftMacmini5/Desktop/GZipDemoApp/Carthage/Checkouts/GzipSwift/Gzip.xcodeproj CODE_SIGNING_REQUIRED = NO CODE_SIGN_IDENTITY = CARTHAGE = YES -list)失败,退出代码为72:

xcrun:错误:无法找到实用程序"xcodebuild",而不是开发人员工具或PATH

installation command-line gzip carthage swift3

165
推荐指数
2
解决办法
4万
查看次数

我该如何修复此警告:CoreSimulator正在尝试卸载过时的CoreSimulatorService作业

我在teamcity的构建日志中有一个警告.我已经将我的CI-Server上的Xcode从7.3.1更新到8.步骤成功运行但我有:

[Step 3/3] Starting: /Users/teamcity/local/teamcity-build-agent/temp/agentTmp/custom_scriptxxxxxxx
[Step 3/3] in directory: /Users/teamcity/local/teamcity-build-agent/work/yyyy
[Step 3/3] 2016-10-11 09:04:41.706 xcodebuild[18180:5010256] CoreSimulator is attempting to unload a stale CoreSimulatorService job.  Detected Xcode.app relocation or CoreSimulatorService version change.  Framework path (/Applications/Xcodes/Xcode_8.0.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework) and version (303.8) does not match existing job path (/Applications/Xcodes/Xcode-7.3.1.app/Contents/Developer/Library/PrivateFrameworks/CoreSimulator.framework/Versions/A/XPCServices/com.apple.CoreSimulator.CoreSimulatorService.xpc) and version (209.19).
[Step 3/3] 2016-10-11 09:04:41.961 xcodebuild[18180:5010256] Failed to locate a valid instance of CoreSimulatorService in the bootstrap.  Adding it now.
Run Code Online (Sandbox Code Playgroud)

我该如何修复此警告?

teamcity continuous-integration xcodebuild xcode8

21
推荐指数
1
解决办法
6978
查看次数

项目转换为Swift 4后,'pod spec lint'失败

在将我的cocoa框架项目转换为Swift 4后,类UIFontDescriptorFamilyAttribute现在是UIFontDescriptor.AttributeName.family,所以我更改了我的代码:

// Swift 3    
UIFontDescriptor(fontAttributes: [UIFontDescriptorFamilyAttribute: fontFamiliy])
Run Code Online (Sandbox Code Playgroud)

// Swift 4
UIFontDescriptor(fontAttributes: [UIFontDescriptor.AttributeName.family: fontFamiliy])
Run Code Online (Sandbox Code Playgroud)

但是,当我尝试 - pod spec lint - 我得到下一个错误:

- ERROR | [iOS] xcodebuild:  SerializableLabel.swift:108:68: error: type 'UIFontDescriptor' has no member 'AttributeName'
Run Code Online (Sandbox Code Playgroud)

cocoapods还不知道Swift 4吗?我是否必须在配置中更新其他内容?

我的配置:

.podspec

s.pod_target_xcconfig = { 'SWIFT_VERSION' => '4.0' }
Run Code Online (Sandbox Code Playgroud)

的CocoaPods

$ pod --version
1.3.1
Run Code Online (Sandbox Code Playgroud)

cocoapods swift uifontdescriptor swift4

1
推荐指数
1
解决办法
354
查看次数