No such module “Armchair”

给你一囗甜甜゛ 提交于 2019-12-07 01:31:07

问题


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.

  • 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:

  • No such module 'PFFacebookUtils'
  • "no such module" on Xcode 7 beta 2
  • Cannot install Alamofire in new Xcode Project. "No Such module Alamofire"
  • Getting error "No such module" using Xcode, but the framework is there

Running XCode 7.1. Any suggestions on how to solve it?


回答1:


Ok, I figured it out. Its was too simple and kind of a stupid reason if you ask me.

My core app three configurations:

  • Debug
  • Release
  • Pre-Release

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.



来源:https://stackoverflow.com/questions/33282475/no-such-module-armchair

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!