美文网首页iOS
Invalid parameter not satisfying

Invalid parameter not satisfying

作者: 管饱饱 | 来源:发表于2016-05-19 14:39 被阅读733次

    1.Invalid parameter not satisfying: [views count] == 3

    用到这个函数的时候,报了这个错,后来animated改为no就好了,查的显示,动画会引起奔溃

    [self.pageViewController setViewControllers:@[_controllers[_currentTypeIndex]]

    direction:UIPageViewControllerNavigationDirectionForward

    animated:NO

    completion:nil];

    2.16.5.19  'NSInternalInconsistencyException', reason: 'UITableView (; layer =; contentOffset: {0, 0}; contentSize: {375, 415}>) failed to obtain a cell from its dataSource ()' 

    原因:没有在调用之前注册    ps:快一个月没写代码了,手生了........

    解决办法先注册cell才可以:[mTable registerNib:[UINib nibWithNibName:TESTIMAGECELL bundle:nil] forCellReuseIdentifier:TESTIMAGECELL];\

    2.16.5.19  Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'table view row height must not be negative - provided height for index path ({length = 2, path = 0 - 1}) is nan'

    我返回了一个nan,非整数,所以崩了

    3.u3d项目打包到xcode

    ld: warning: ignoring file /Users/apple/Desktop/iosU3dPro_test/Libraries/libiPhone-lib.a, file was built for archive which is not the architecture being linked (i386): /Users/apple/Desktop/iosU3dPro_test/Libraries/libiPhone-lib.a

    Undefined symbols for architecture i386:

    "_ALAssetsGroupPropertyName", referenced from:

    ___29-[OAlbumController GetAlbums]_block_invoke_2 in OAlbumController.o

    -[OAlbumController GetAlbum:] in OAlbumController.o

    "_OBJC_CLASS_$_ALAssetsFilter", referenced from:

    objc-class-ref in OAlbumController.o

    "_OBJC_CLASS_$_ALAssetsGroup", referenced from:

    objc-class-ref in OAlbumController.o

    "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:

    objc-class-ref in OAlbumController.o

    "_RegisterModule_AI", referenced from:

    RegisterStaticallyLinkedModules() in RegisterMonoModules.o

    "_RegisterModule_Animation", referenced from:

    RegisterStaticallyLinkedModules() in RegisterMonoModules.o

    "_RegisterModule_Audio", referenced from:

    解决办法:1.u3项目直接运行在xcode上  ,不要用模拟器,选择真机

    2.如果非要使用模拟器,用如下方法(第一次需要以后就不用了)

    上图来自:http://www.jianshu.com/p/44d150ec1807

    3.上面的问题(这种问题多发于拿到不适自己的项目)

    "_OBJC_CLASS_$_ALAssetsLibrary", referenced from:

    objc-class-ref in OAlbumController.o

    可能情况有两种:

    1>OAlbumController.m  类没有添加  需要在build phases->complile sources查看是否有,没有就添加下

    2>查看ALAssetsLibrary类使用时需要的框架是不是都添加了,可以百度下需要的框架,然后在build phases->link binary with libraries  里面检查是否缺失

    4.2016.8.17  我又开始做项目了

    clang: error: no such file or directory: '/Users/apple/Desktop/SigninViewController.m'

    clang: error: no input files

    相关文章

      网友评论

        本文标题:Invalid parameter not satisfying

        本文链接:https://www.haomeiwen.com/subject/lalgrttx.html