[英]linker command failed with exit code 1 after I upgrade to Xcode 7
升级到El Capitan和Xcode 7后,无法构建我的应用程序。 我在所有全局变量上都得到重复的符号。 请帮忙。
//Global.h
#ifndef Global_h
#define Global_h
extern NSInteger pickerConstantOne, pickerConstantTwo,numberOfDays, monthOfToday;
NSInteger pickerConstantOne, pickerConstantTwo,numberOfDays, monthOfToday;
#endif /* Global_h */
您已经错误地声明了这些变量; 从标题中删除此语句:
NSInteger pickerConstantOne, pickerConstantTwo,numberOfDays, monthOfToday;
并将其移至.m
文件。
您还应该首先检查一下为什么要使用全局变量,因为您肯定不需要这么做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.