ios 编译中请教。

2023-02-17 11:32:05 +08:00
 awanganddong

我现在从网上找了一份 swift 代码

项目地址如下

https://github.com/JakeLin/SwiftLanguageWeather

然后我执行 build 操作

返回的结果如下,并且一直卡着

+ xcodebuild clean build-for-testing -workspace SwiftWeather.xcworkspace -scheme SwiftWeather -destination 'platform=iOS Simulator,name=iPhone 13,OS=12.3.1' -destination-timeout 360 COMPILER_INDEX_STORE_ENABLE=NO
2023-02-17 11:27:26.586 xcodebuild[19265:372393] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2023-02-17 11:27:26.587 xcodebuild[19265:372393] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore

想请问这是什么原因。

711 次点击
所在节点    程序员
3 条回复
mcluyu
2023-02-17 11:43:09 +08:00
项目里 How to build 不是描述的很清楚了吗,你直接用 xcodebuild 还选了 build-for-testing 没找到调试器啊。
用 Xcode 运行, 不修改配置不签名你直接 xcodebuild 就算打包出来你也无法在手机上运行。
awanganddong
2023-02-17 11:59:55 +08:00
@mcluyu 我明白你的意思了。

其实我是想用 sonar-swift 对 swift 代码进行监测。我按整套配置下。
awanganddong
2023-02-17 17:23:00 +08:00
@mcluyu

我该怎么配置调试器呢,

现在我从新建个项目 test,然后 scheme 是 test

但是报错是这样的

xcodebuild: error: The workspace named "test" does not contain a scheme named "test". The "-list" option can be used to find the names of the schemes in the workspace.

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/916895

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX