ld: warning: directory not found for option '-L/Users/frenck/Downloads/apz/../iOS Analytics SDK/Library’
解决方法:选择项目名称----->Targets----->Build Settings----->Search Paths----->Library Search Paths 删除对应路径
was called reentrantly on the same queue, which would lead to a deadlock
//数据库死锁
ViewTest[2638:c07] *** Terminating app due to uncaught exception ‘NSGenericException’, reason: ‘*** Collection <__NSArrayM: 0xb550c30> was mutated while being enumerated.’
//一边便利数组,又同时修改这个数组里面的内容,导致崩溃
将计数器的repeats设置为YES的时候,self的引用计数会加1。因此可能会导致self(即viewController)不能release,所以,必须在viewWillAppear的时候,将计数器timer停止,否则可能会导致内存泄露。停止的方法,1:调用 invalidate;2:将指向计数器的指针指向nil.
错误:objc_msgSend(self.beginRefreshingTaget, self.beginRefreshingAction, self);
Too many arguments to function call, expected 0, have 3
解决方法:选中项目 - Project - Build Settings - ENABLE_STRICT_OBJC_MSGSEND 将其设置为 NO 即可
AFN运行问题:failed: unacceptable content-type: text/html
在AFNURLResponseSerialization中这段添加text/html,即变为self.acceptableContentTypes = [NSSet setWithObjects:@"application/json", @"text/json", @"text/javascript",@"text/html", nil]
导入***.a文件步骤:
1,将***.a拖入到Frameworks中,既制定了libs的search目录。
2,修改"Header search Paths"将header的目录路径填入,其中“$(SRCROOT)”表示工程文件的路径。
3:导入库,在Bulid Phases中得Link Binary With Libraries中添加.a文件
网友评论