CorePlot通过cocoaPod安装报错的解决方法
来源:互联网 发布:淘宝爆款软件 编辑:程序博客网 时间:2024/05/21 19:50
今天想通过cocoapod安装CorePlot 安装成功 但运行时报错(我的Xcode版本是最新的6.4)
too many arguments to function call,expected 0,have3
网上百度了下都说把Bulid Setting-->Enable Strict Checking of msg_Send Calls中的Yes 改成No;
可是我按照这样的步骤做了 还是一点成效都没有 错误还是依然在那报着 依旧在百度
然后再http://stackoverflow.com网站找到了答案 在这几部分做修改就好了
CPTAnimation.m
-(void)updateOnMainThreadWithParameters:(NSDictionary *)parameters
if ( [tweenedValue isKindOfClass:[NSDecimalNumber class]] ) { NSDecimal buffer = [(NSDecimalNumber *)tweenedValue decimalValue]; - IMP setterMethod = [boundObject methodForSelector:boundSetter];+ typedef void (*SetterType)(id, SEL, NSDecimal);+ SetterType setterMethod = (SetterType)[boundObject methodForSelector:boundSetter]; setterMethod(boundObject, boundSetter, buffer); } else if ( [tweenedValue isKindOfClass:[NSValue class]] ) { NSValue *value = (NSValue *)tweenedValue; NSUInteger bufferSize = 0; NSGetSizeAndAlignment(value.objCType, &bufferSize, NULL); NSInvocation *invocation = [NSInvocation invocationWithMethodSignature:[boundObject methodSignatureForSelector:boundSetter]]; [invocation setTarget:boundObject]; [invocation setSelector:boundSetter]; void *buffer = malloc(bufferSize); [value getValue:buffer]; [invocation setArgument:buffer atIndex:2]; free(buffer); [invocation invoke]; } else { #pragma clang diagnostic push #pragma clang diagnostic ignored "-Warc-performSelector-leaks" id<NSObject> theObject = boundObject;
-(void)setStartValueFromObject:(id)boundObject propertyGetter:(SEL)boundGetter {- IMP getterMethod = [boundObject methodForSelector:boundGetter];+ typedef NSValue *(*GetterType)(id, SEL);+ GetterType getterMethod = (GetterType)[boundObject methodForSelector:boundGetter]; self.startValue = getterMethod(boundObject, boundGetter); } -(BOOL)canStartWithValueFromObject:(id)boundObject propertyGetter:(SEL)boundGetter {- IMP getterMethod = [boundObject methodForSelector:boundGetter];+ typedef CPTPlotRange *(*GetterType)(id, SEL);+ GetterType getterMethod = (GetterType)[boundObject methodForSelector:boundGetter]; CPTPlotRange *current = getterMethod(boundObject, boundGetter); CPTPlotRange *start = (CPTPlotRange *)self.startValue;
经这番修改后 编译成功了
不得不说 栈溢出 这个网站还是非常好的 我在里面找到了很多解决问题的方法
1 0
- CorePlot通过cocoaPod安装报错的解决方法
- CorePlot的安装
- IOS开发-cocoaPod安装遇到的错误以及解决方法
- CocoaPod的安装
- Cocoapod的安装
- mac CocoaPod安装常见问题以及解决方法
- CocoaPod的安装和使用
- CocoaPod的安装与使用
- 安装CocoaPod遇到的问题
- Cocoapod的安装和使用
- Windows8 安装Vs2008 报错的解决方法
- Windows8 安装Vs2008 报错的解决方法
- CentOS安装pillow报错的解决方法
- ubuntu安装pyOpenSSL报错的解决方法
- CentOS安装pillow报错的解决方法
- Xcode7.3.1中通过最新的CocoaPod安装pop动画引擎
- Swift CocoaPod导入框架报错
- cocoapod 安装
- HDOJ 1513 Palindrome(LCS)
- EC11旋转编码器电路和程序
- cin、cin.get()、cin.getline()、getline()、gets()等函数的用法
- POJ 1258--Agri-Net【最小生成树 && Kruskal && 水题】
- PC110102(扫雷)(Minesweeper)
- CorePlot通过cocoaPod安装报错的解决方法
- 课后习题 poj 2376 区间贪心
- HDU 5060/BC 12C War
- Func递归Easyui Tree
- hdu 2066 一个人的旅游
- request.getHeader("host")
- LCS模板
- [leetcode 229]Majority Element II
- NYOJ--71--独木舟上的旅行