我用coco pod安装了'Mantle'.但是当我尝试在我的模型中使用它时,它就会出现这个错误.
/Users/bgbb/Developer/experimental/MantleTest/MantleTest/TestMTL.h:11:32:找不到'MTLJSONSerializing'的协议声明
#import "MTLModel.h"
@interface TestMTL : MTLModel <MTLJSONSerializing>
@end
Run Code Online (Sandbox Code Playgroud)
这是我的podfile.
platform :ios, '7.0'
pod 'Mantle', '1.1.2'
Run Code Online (Sandbox Code Playgroud)
我不确定我错过了什么.任何线索?
它在几天前工作,但今天创建一个新的vertualenv导致这种失败.
分别尝试安装python-setuptools也遇到了同样的问题.它在Mac OS上.
mac:django bgbb$ virtualenv vnv
New python executable in vnv/bin/python
Installing setuptools, pip...
Complete output from command /Users/bgbb/Developer/django/vnv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip:
Ignoring indexes: https://pypi.python.org/simple/
Downloading/unpacking setuptools
Cleaning up...
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/req.py", line 1197, in prepare_files
do_download,
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/req.py", line 1364, in unpack_url
unpack_file_url(link, location, download_dir)
File "/Library/Python/2.7/site-packages/virtualenv_support/pip-1.5.5-py2.py3-none-any.whl/pip/download.py", line …Run Code Online (Sandbox Code Playgroud)