1.7正式版本问题 was built for newer iOS version (10.2) than being linked (8.0)

  • Creator 版本:1.7.0
  • 目标平台: iOS

编译时出现一下警告 was built for newer iOS version (10.2) than being linked (8.0)

ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(HeartbeatEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(SharedPerfUtil.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(ActivityEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(BaseEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(Reachability.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(NetworkUtil.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(TaskEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(ItemEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAAgent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(MyMessage.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(LogManager.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(LevelEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(InitEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(DeviceInfo.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(SQLiteUtil.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CALog.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(VirtualEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CATask.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAVirtual.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(Utils.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(AccountEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAItem.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(Constants.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(PeiEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CustomEvent.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAPeiment.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CALevels.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: object file (/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(CAAccount.o)) was built for newer iOS version (10.2) than being linked (8.0)
ld: warning: direct access in function ‘rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::GenericValue(rapidjson::Type)’ from file ‘/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Intermediates.noindex/gzmahjong.build/Debug-iphoneos/gzmahjong-mobile.build/Objects-normal/arm64/BaseModel.o’ to global weak symbol ‘rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::GenericValue(rapidjson::Type)::defaultFlags’ from file ‘/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(Manifest.o)’ means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.
ld: warning: direct access in function ‘rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::GenericValue(rapidjson::Type)’ from file ‘/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Intermediates.noindex/gzmahjong.build/Debug-iphoneos/gzmahjong-mobile.build/Objects-normal/arm64/BaseModel.o’ to global weak symbol ‘rapidjson::GenericValue<rapidjson::UTF8, rapidjson::MemoryPoolAllocatorrapidjson::CrtAllocator >::GenericValue(rapidjson::Type)::defaultFlags’ from file ‘/Users/xinling/Library/Developer/Xcode/DerivedData/gzmahjong-ekmcixubycexcbdvcgabtokdlcfd/Build/Products/Debug-iphoneos/libcocos2d iOS.a(Manifest.o)’ means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

你在xcode里设置的大于10.2了,改成小于等于10.2就可以了

我是支持8.0以上的,上面的错主要是HeartbeatEvent,SharedPerfUtil, PeiEven等这些类是用的高版本的编译出来的。但不知道这些类是那个库的

官方demo代码,Deployment Target 设置成 8.0

不是早就说了么

感谢答复。
应该是libcocosanalytics.a库使用的10.2编译的。这个目前没有源码,需要引擎组大大重新编译。
我的App是设置的8.0

。。。。。
我反馈一下。。。