首页 / 浏览问题 / 移动GIS / 问题详情
超图头文件在两个.m中引入会产生冲突
4EXP 2017年04月27日
#import <SuperMap/SuperMap.h>我在两个.m文件中导入了,在xcode8.3.2版本中debug模式出现以下错误,切换成release模式就没有

duplicate symbol _maxEqualZeroPrecision in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _minEqualZeroPrecision in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _DEFAULT_MAX_EQUAL_ZERO_PRECISION in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _DEFAULT_MIN_EQUAL_ZERO_PRECISION in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _FLT_MAX_VALUE in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _DBL_MAX_VALUE in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _FLT_MIN_VALUE in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

duplicate symbol _DBL_MIN_VALUE in:

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACMapViewController.o

    /Users/shengli/Library/Developer/Xcode/DerivedData/SocietyAndCloud-fglcdzhzpvlpizfhtuyztlymokmc/Build/Intermediates/SocietyAndCloud.build/Debug-iphoneos/SocietyAndCloud.build/Objects-normal/arm64/SACWorkVCLD.o

1个回答

不知道是不是Xcode版本的原因,我这边使用8.2版本测试未出现任何异常,您那边可以安装一个版本稍微低点的Xcode测试看下。
1,747EXP 2017年04月27日
我这边用7.3.1的时候没有问题,升级了到8.3.2就有这样的问题了,我同事8.3也有问题
...