码迷,mamicode.com
首页 > 其他好文 > 详细

duplicate symbol _gestureMinimumTranslation in:

时间:2015-04-10 16:55:09      阅读:137      评论:0      收藏:0      [点我收藏+]

标签:

在真机上编译无误,在模拟器上编译报错:
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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!