这个问题让我疯了。无论我做什么,我得到的问题没有这样的模块扶手椅,当我归档。它工作时,我建立,但当我归档XCode messes与我。
This problem is driving me insane. Whatever I do, I get the problem "No such module 'Armchair'" when I archive. It works when I build but when I archive XCode messes with me. I see XCode archiving/compiling Armchair.
- 我已添加 $(PROJECT_DIR)/ AppName / External / Armchair / build / Release-iphoneos 到框架搜索路径。
- 我已将框架添加到嵌入式二进制文件中
- 我已将框架添加到链接框架和库中
- 我也尝试添加框架复制框架在我的构建阶段
- 我已经尝试添加扶手椅框架工作区,只添加&
- I have added $(PROJECT_DIR)/AppName/External/Armchair/build/Release-iphoneos to Framework Search Paths.
- I have added the framework in Embedded binaries
- I have added the framework in Linked Frameworks and Libraries
- I have also tried with adding the framework to copy frameworks in my Build Phases
- I have tried by adding the Armchair framework to my workspace instead and only added & coping the framework from there.
我想我甚至尝试了一个雨天,只是为了确保。
I think I have even tried a raindance, just to be sure. It keeps refusing to work when archiving, but works for normal building and running on device.
我已阅读并尝试过这些相关问题:
I have read and tried these related questions:
- 没有此类模块PFFacebookUtils
- 没有此类模块 ; on Xcode 7 beta 2
- 无法在新的Xcode项目中安装Alamofire。 No Such module Alamofire
- Xcode:没有这样的模块错误,但框架存在
- No such module 'PFFacebookUtils'
- "no such module" on Xcode 7 beta 2
- Cannot install Alamofire in new Xcode Project. "No Such module Alamofire"
- Xcode : "No such module" error, but the framework is there
运行XCode 7.1。关于如何解决它的任何建议?
Running XCode 7.1. Any suggestions on how to solve it?
推荐答案好吧,我想出来了。它太简单了,如果你问我一个愚蠢的理由。
Ok, I figured it out. Its was too simple and kind of a stupid reason if you ask me.
我的核心应用程式有三种配置:
My core app three configurations:
- 调试
- 发布
- 预发布
,在这种情况下是Armchair,只有 Debug 和 Release 配置。 当我归档我的应用程序时,使用预发布配置,其中不包括 Armchair.xcodeproj 。将预发布配置添加到 Armchair.xcodeproj 中解决了我的问题。
The framework I added into my app, in this case Armchair, has only the Debug and Release configuration. When I archive my app, the Pre-Release configuration is used, which doesn't exist for the included Armchair.xcodeproj. Added the Pre-Release configuration to the Armchair.xcodeproj solved my problem.
更多推荐
没有这样的模块“扶手椅”
发布评论