1尖滚、This block declaration is not a prototype
我們定義一個(gè)沒(méi)有參數(shù)的block确徙,typedef void(^ButtonBlock)();
在Xcode9之前,不會(huì)報(bào)警告兆旬,但是在Xcode9之后结胀,需要將其定義為`typedef void(^ButtonBlock)(void);
要想全部忽略這個(gè)警告,將 Target-Bulid Setting-Strict Prototypes
設(shè)置為No
2饵隙、Block implicitly retains 'self'; explicitly mention 'self' to indicate this..
將 Target-Bulid Setting-implicit retain of 'self' within blocks
設(shè)置為No
3、directory not found for optionXXX
你在Search Path配置了路徑沮脖,但是工程里面找不到這個(gè)文件
將Target-Bulid Setting- Library Search Paths 和 Framework Search Paths
金矛, 刪掉編譯報(bào)warning的路徑即OK
Library Search Paths
放xxx.a
文件
Framework Search Paths
放xxx.framework
文件
4、集成高德地圖報(bào)警告
ld: warning: direct access in function 'sgi::hashtable<sgi::pair<int const, signed char*>, int, sgi::hash<int>, sgi::_Select1st<sgi::pair<int const, signed char*> >, sgi::equal_to<int>, sgi::allocator<signed char*> >::_M_initialize_buckets(unsigned long)' from file '/Users/summer/Desktop/migu_git/ext-IOS/Pods/AMap3DMap/MAMapKit.framework/MAMapKit(MAMapKit-x86_64-master.o)' to global weak symbol 'sgi::__malloc_alloc_template<0>::__malloc_alloc_oom_handler' from file '/Users/summer/Desktop/migu_git/ext-IOS/Pods/AMap3DMap/MAMapKit.framework/MAMapKit(MAMapKit-x86_64-master.o)' means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
在Other Linker Flags
添加 -w
將持續(xù)更新勺届。驶俊。。