我正在使用应用内购买运行PhoneGap项目。我一直在构建我的应用程序,直到我启用Audiotoolbox框架下的#bin;链接二进制文件库和#39;在Xcode中。现在我收到以下错误:
duplicate symbol _OBJC_IVAR_$_InAppPurchase.unfinishedTransactions in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_IVAR_$_InAppPurchase.list in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_IVAR_$_InAppPurchase.retainer in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_IVAR_$_BatchProductsRequestDelegate.plugin in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_IVAR_$_BatchProductsRequestDelegate.command in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_CLASS_$_BatchProductsRequestDelegate in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_METACLASS_$_BatchProductsRequestDelegate in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_CLASS_$_InAppPurchase in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
duplicate symbol _OBJC_METACLASS_$_InAppPurchase in:
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-5FA8967824755833.o
/Users/joy/Sites/phrase/platforms/ios/build/Pop Phrase.build/Debug-iphonesimulator/Pop Phrase.build/Objects-normal/i386/InAppPurchase-8597B14B285C1761.o
ld: 9 duplicate symbols for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
我假设我有一个重复的变量,但不确定在哪里。错误引用的文件不存在。有什么想法吗?
答案 0 :(得分:6)
重要(自cordova-ios 4.5.0起):
请注意,cordova插件 cordova-plugin-console 现在是cordova-ios平台的一部分。 因此,如果您使用cordova-ios@4.5.0或更高版本,则绝对删除cordova-plugin-console!
cordova plugin rm cordova-plugin-console
这也涉及普通的cordova应用程序和离子应用程序。 更多信息:Console-Plugin on GitHub
答案 1 :(得分:4)
通过完全删除插件并重新添加它来修复。 iOS很奇怪。