首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Phonegap,Cordova -插件问题

Phonegap,Cordova -插件问题
EN

Stack Overflow用户
提问于 2013-07-30 17:12:46
回答 3查看 4.8K关注 0票数 16

我已经安装了Phonegap (3.0.3)和Cordova CLI。

我也将iOS作为平台运行(使用$ cordova platforms ls进行了确认)

我已经安装了插件($ cordova plugins ls)

org.apache.cordova.core.dialogs
org.apache.cordova.core.vibration

但是,当我运行这个控制台命令($ cordova emulate ios)时,我得到以下错误。

Undefined symbols for architecture i386:
  "_AudioServicesAddSystemSoundCompletion", referenced from:
      _playBeep in CDVNotification.o
  "_AudioServicesCreateSystemSoundID", referenced from:
      _playBeep in CDVNotification.o
  "_AudioServicesDisposeSystemSoundID", referenced from:
      _soundCompletionCallback in CDVNotification.o
  "_AudioServicesPlaySystemSound", referenced from:
      _playBeep in CDVNotification.o
      -[CDVVibration vibrate:] in CDVVibration.o
  "_AudioServicesRemoveSystemSoundCompletion", referenced from:
      _soundCompletionCallback in CDVNotification.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)


** BUILD FAILED **


The following build commands failed:
    Ld build/MyApp.app/MyApp normal i386
(1 failure)

我遵循了API页面的指示(http://cordova.apache.org/docs/en/edge/cordova_notification_notification.md.html#Notification),下面是导致错误的MyApp > www > config.xml文件中的config.xml文件。

<?xml version='1.0' encoding='utf-8'?>
<widget id="com.myapp.myapp" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>MyApp</name>
    <description>
        A sample Apache Cordova application that responds to the deviceready event.
    </description>
    <author email="dev@callback.apache.org" href="http://cordova.io">
        Apache Cordova Team
    </author>
    <plugin name="Notification" value="CDVNotification" />
    <access origin="*" />
    <preference name="fullscreen" value="true" />
    <preference name="webviewbounce" value="true" />   
</widget>

有什么建议可能是这个问题,以及我如何着手解决它?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/17942868

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档