V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
awanganddong
V2EX  ›  程序员

ios 编译中请教。

  •  
  •   awanganddong · 2023-02-17 11:32:05 +08:00 · 694 次点击
    这是一个创建于 440 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我现在从网上找了一份 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
    

    想请问这是什么原因。

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

    其实我是想用 sonar-swift 对 swift 代码进行监测。我按整套配置下。
    awanganddong
        3
    awanganddong  
    OP
       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.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2159 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 02:09 · PVG 10:09 · LAX 19:09 · JFK 22:09
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.