【问题标题】:Error building App Store and Adhoc Distributions (using three20)构建 App Store 和 Adhoc 分发时出错(使用 three20)
【发布时间】:2011-09-22 10:15:15
【问题描述】:

我在构建项目的 App Store 和 Adhoc 发行版时遇到错误。我正在使用最新版本的 three20,我使用给定的 python 脚本将其集成到我的 Xcode 4 项目中。

项目构建的发布和调试版本很好,没有任何构建错误。

以下是错误摘要:

错误:Three20/Three20.h:没有这样的文件或目录 .. 找不到 'TTDefaultStyleSheet' 的接口声明,'MyTTStyleSheet' 的超类

【问题讨论】:

    标签: ios xcode4 three20


    【解决方案1】:

    我已经弄清楚这里发生了什么。 python脚本将three20的header搜索路径改为:

    $(BUILT_PRODUCTS_DIR)/../three20
    $(BUILT_PRODUCTS_DIR)/../../three20
    ../../libs/external/three20/Build/Products/three20
    

    这些路径适用于调试和发布版本,因为宏扩展为没有任何空格的路径,例如(build/Debug-iphoneos/ 和 build/Release-iphoneos)。 Xcode 4 似乎不喜欢 Adhoc 和 Appstore 分发构建文件夹,因为其中有空格。这些是 build/Ad Hoc Distribution-iphoneos 和 build/Appstore Distribution-iphoneos。双引号构建路径字符串已修复这些问题。

    将three20的标题搜索路径设置为:

    "$(BUILT_PRODUCTS_DIR)/../three20"
    "$(BUILT_PRODUCTS_DIR)/../../three20"
    "../../libs/external/three20/Build/Products/three20"
    

    【讨论】:

      【解决方案2】:

      这可能是因为您在使用 python 脚本添加three20项目之后添加了这两个新目标。

      您将需要再次运行 python 脚本以将 three20 添加到您的新目标中:

      python three20/src/scripts/ttmodule.py -p ProjectName/ProjectName.xcodeproj -c NEW_TARGET_NAME Three20
      

      【讨论】:

      • 我没有添加任何新目标。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-12
      相关资源
      最近更新 更多