9***@qq.com
9***@qq.com
  • 发布:2016-09-19 11:40
  • 更新:2019-04-15 18:55
  • 阅读:1835

清理demo体积报错,何处引用?

分类:5+ SDK

iOS的demo下载下来之后有300+MB,里面包含了多有的库就有300+MB,我们的程序直有很小的体积,我根据feature-iOS.xls进行了清理,先以百度地图尝试
1、PandoraApi.bundle中的feature.plist:删除Maps
2、HBuilder-Hello-info.plist中删除amap(资料里面说百度地图的是baidu:appkey,不过我没有找到)
3、我的build Settings-Other Linker Flags中只有-ObjC
4、删除了mapapi.bundle
5、删除对应库:.a和.framework

那么现在问题就来了,删除这几个库之后报错,提示我未找到相应库,可是我没有找到我在哪里有引用,Hbuilder离线打包的时候我有把我不要的模块删除,请问我哪里需要删除什么东西?

报错说明
ld: warning: object file (/Users/webber/Desktop/newAPP/SDK/Libs/libIAPPay.a(PGPayIAP.o)) was built for newer iOS version (9.1) than being linked (8.4)
ld: warning: arm64 function not 4-byte aligned: ltmp0 from /Users/webber/Desktop/newAPP/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_call_SYSV from /Users/webber/Desktop/newAPP/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
ld: warning: arm64 function not 4-byte aligned: _ffi_closure_SYSV from /Users/webber/Desktop/newAPP/SDK/Libs/liblibPGInvocation.a(sysv_arm64.o)
Undefined symbols for architecture arm64:
"_OBJCCLASS$_BMKReverseGeoCodeOption", referenced from:
objc-class-ref in liblibGeolocation.a(PGLocationBaidu.o)
"_OBJCCLASS$_BMKGeoCodeSearch", referenced from:
objc-class-ref in liblibGeolocation.a(PGLocationBaidu.o)
"_OBJCCLASS$_PGBaiduKeyVerify", referenced from:
objc-class-ref in liblibGeolocation.a(PGLocationBaidu.o)
"_OBJCCLASS$_BMKLocationServiceWrap", referenced from:
objc-class-ref in liblibGeolocation.a(PGLocationBaidu.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

2016-09-19 11:40 负责人:无 分享
已邀请:
gamgmg

gamgmg

我也遇到同样问题,有大神回答一下吗

该问题目前已经被锁定, 无法添加新回复