标签:
在真机上编译无误,在模拟器上编译报错:
duplicate symbol _gestureMinimumTranslation in: /Users/Sam/Library/Developer/Xcode/DerivedData/Virtual_Human_Avatar-fwgdkxpnkzapxrdzkggtmbnfhjwb/Build/Intermediates/Virtual Human Avatar.build/Debug-iphonesimulator/Virtual Human Avatar.build/Objects-normal/i386/VARendererViewController.o /Users/Sam/Library/Developer/Xcode/DerivedData/Virtual_Human_Avatar-fwgdkxpnkzapxrdzkggtmbnfhjwb/Build/Intermediates/Virtual Human Avatar.build/Debug-iphonesimulator/Virtual Human Avatar.build/Objects-normal/i386/VAMenuScreenViewController.o ld: 1 duplicate symbol for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
这是我在.h文件中声明的const常量,报错就是因为这个:
CGFloat const gestureMinimumTranslation = 20.0; 解决: 搜索gestureMinimumTranslation关键字,把这个const常量移到.m文件中即可
duplicate symbol _gestureMinimumTranslation in:
标签:
原文地址:http://www.cnblogs.com/hw140430/p/4414635.html