仅当Build Active Architecture为No时,Cordova链接器错误“为归档而构建的文件不是要链接的体系结构(i386)”

我在Mac Yosemite中使用最新的Cordova版本,使用命令行工具执行以下操作

cordova创建xxxx com.xxxx xxxx

cd xxxx

cordova平台添加ios

现在我打开平台下的xcode项目文件,打开xcode 6

然后我转到构建设置 – >仅构建活动架构 – >否

现在我运行样本准系统cordova应用程序,它会抛出一堆链接器错误

ld: warning: ignoring file /Users/joelasirvathamjesudoss/Library/Developer/Xcode/DerivedData/xxxx-ehdvqzsskcnwbncktgdnuqbbnloq/Build/Products/Debug-iphonesimulator/libCordova.a, file was built for archive which is not the architecture being linked (i386): /Users/joelasirvathamjesudoss/Library/Developer/Xcode/DerivedData/xxxx-ehdvqzsskcnwbncktgdnuqbbnloq/Build/Products/Debug-iphonesimulator/libCordova.a Undefined symbols for architecture i386: "_CDVLocalNotification", referenced from: -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o "_CDVPluginHandleOpenURLNotification", referenced from: -[AppDelegate application:openURL:sourceApplication:annotation:] in AppDelegate.o "_CDVRemoteNotification", referenced from: -[AppDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:] in AppDelegate.o "_CDVRemoteNotificationError", referenced from: -[AppDelegate application:didFailToRegisterForRemoteNotificationsWithError:] in AppDelegate.o "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from: _OBJC_CLASS_$_MainCommandDelegate in MainViewController.o "_OBJC_CLASS_$_CDVCommandQueue", referenced from: _OBJC_CLASS_$_MainCommandQueue in MainViewController.o "_OBJC_CLASS_$_CDVViewController", referenced from: _OBJC_CLASS_$_MainViewController in MainViewController.o "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from: _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o "_OBJC_METACLASS_$_CDVCommandQueue", referenced from: _OBJC_METACLASS_$_MainCommandQueue in MainViewController.o "_OBJC_METACLASS_$_CDVViewController", referenced from: _OBJC_METACLASS_$_MainViewController in MainViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) 

但是,当我更改构建设置 – >仅构建活动架构 – >是的一切正常。

现在我知道提交App Store Build Active Architecture只应该是No.

所以请告诉我哪里出错了

设置如下所示 架构设置 提前致谢

你可以确认你的设置是这样的吗?