No such module when simulator, but when use device it can find it

流过昼夜 提交于 2019-12-23 10:50:45

问题


I got a project where I use some Pods, where one of them is Meteor.

I have installed with cocoapods with this podfile

platform :ios, '8.0'
use_frameworks!

pod 'OpenTok', '~> 2.6'
pod 'Meteor', '~> 0.1'

And then open up the .xcworkspace instead of .xcodeproj Then in my project I import Meteor in my AppDelegate. When I choose a simulator and try to run/build it comes with the error "No such module 'Meteor'"

But then if I take my iPad and connect it and choose it as target, I can fine run/build.

I have not be able to find a solution for this yet.


回答1:


I had the same symptom after following these instructions to speed up my build: Prevent Xcode from building subprojects every time

I was able to run on a simulator again after reverting.

  • Product > Scheme > Edit Scheme…
  • Build (in left column)
  • Make sure that "Find Implicit Dependencies" is Checked


来源:https://stackoverflow.com/questions/32244908/no-such-module-when-simulator-but-when-use-device-it-can-find-it

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