gpt4 book ai didi

ios - Cordova ios 添加扩展 - 错误 : could not find -Info. plist 文件或 config.xml 文件

转载 作者:可可西里 更新时间:2023-11-01 04:00:15 25 4
gpt4 key购买 nike

我最近在 Cordova 上遇到了添加新目标应用程序扩展的问题。我拥有的是一个 Cordova 应用程序和一个我创建的自定义 Cordova 插件。当我向我的 ios 应用程序添加扩展时(使用 XCode -> 文件 -> 新 -> 目标 ...应用程序扩展:自定义键盘)然后我尝试安装我的插件,我收到以下错误:

Failed to install 'paykey-plugin':CordovaError: could not find -Info.plist file, or config.xml file. at Object.parseProjectFile [as parse] (/Users/Yariv/Development/workspace/paykey/paykeyCordova/platforms/ios/cordova/lib/projectFile.js:50:15) at Plugman.addPlugin (/Users/Yariv/Development/workspace/paykey/paykeyCordova/platforms/ios/cordova/lib/plugman/Plugman.js:68:31) at Api.addPlugin (/Users/Yariv/Development/workspace/paykey/paykeyCordova/platforms/ios/cordova/Api.js:202:40) at handleInstall (/Users/Yariv/npm/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:605:6) at /Users/Yariv/npm/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:403:28 at _fulfilled (/Users/Yariv/npm/lib/node_modules/cordova/node_modules/q/q.js:787:54) at self.promiseDispatch.done (/Users/Yariv/npm/lib/node_modules/cordova/node_modules/q/q.js:816:30) at Promise.promise.promiseDispatch (/Users/Yariv/npm/lib/node_modules/cordova/node_modules/q/q.js:749:13) at /Users/Yariv/npm/lib/node_modules/cordova/node_modules/q/q.js:509:49 at flush (/Users/Yariv/npm/lib/node_modules/cordova/node_modules/q/q.js:108:17) Error: could not find -Info.plist file, or config.xml file. [12:38:19] 'installPlugins' errored after 1.39 s [12:38:19] Error: Command cordova plugin add ../paykeyCordovaPlugin failed with exit code 1 at ChildProcess.exithandler (child_process.js:203:12) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:818:16) at Socket. (internal/child_process.js:319:11) at emitOne (events.js:77:13) at Socket.emit (events.js:169:7) at Pipe._onclose (net.js:469:12)

提前致谢

最佳答案

这可能是因为您的插件没有为 *-Info.plist 使用正确的路径。

当您使用“Subline Text”等文本编辑器打开位于 platforms/ios/YourAppName.xcodeproj/project.pbxproj 的 project.pbxproj 时,尝试在项目名称前删除或添加“$(SRCROOT)”。

例如:

INFOPLIST_FILE = "$(SRCROOT)/YourAppName/YourAppName-Info.plist";

尝试删除“$(SRCROOT)/”或添加“$(SRCROOT)/”

关于ios - Cordova ios 添加扩展 - 错误 : could not find -Info. plist 文件或 config.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37183033/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com