美文网首页iOS基础扫盲
iOS-开发中的问题

iOS-开发中的问题

作者: 记忆的北极 | 来源:发表于2019-03-19 10:46 被阅读4次

    1, 'iostream' file not found

    这个问题是没有引入c++的系统库,在Link Binary With libiraries里添加libstdc++.dylib系列的库

    2, library not found for -libstdc++.6.0.9

    原因:

    xcode升级到10.0之后的c++库,原来的陈旧的libstdc++升级到了libc++库,10.0之后没有了libstdc++. libc++是苹果最新的c++库,支持c++11.所以需要添加原来的libstdc++库添加到项目中.
    最好的做法是等第三方库更新支持libc++库.
    下载libstdc++库,下载链接,提取码xifi
    将 libstdc++、libstdc++.6、libstdc++6.0.9拷贝到Xcode的如下目录:
    1,真机环境:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/lib/
    2,模拟器环境:
    /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib/

    3,iOS 打包时出现在other items

    打包出来的app显示在other items 里面,并且 update appstroe 和export 都是不能点击的​,解决办法:

    1, 依赖库工程(Framework工程)​的Targets - Building Setting - Skip install 设置为YES.
    2, 主工程(app测试项目)的​Targets - Building Setting - Skip install 设置为NO.
    3, 依赖库的头文件Targets - Build Phases - Headers下的头文件必须放在Project,不能放在Public 和 Private 里面

    4,UITableview的UITableViewStyleGrouped的样式

    关于grouped的样式是有所不同的,这个样式的不同之处在于它会自动添加分区留白.
    如果想要去掉这个留白,可以进行一下设置.

    _homeTableView.sectionFooterHeight = 0.1;

    相关文章

      网友评论

        本文标题:iOS-开发中的问题

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