简体   繁体   English

如何在info.plist文件中找到App Bundle Path?

[英]How do I find the App Bundle Path from within the info.plist file?

I have a custom version of the WebKit framework that I store in my app bundle. 我有一个自定义版本的WebKit框架,我存储在我的应用程序包中。 I would like to override the Environmental Variable DYLD_FRAMEWORK_PATH to look inside my app bundle. 我想覆盖环境变量DYLD_FRAMEWORK_PATH以查看我的应用程序包内部。 I am using the info.plist file to do this. 我使用info.plist文件来执行此操作。 If I give it an absolute path to my custom WebKit framework everything works perfectly, but this doesn't do me any good since a user can move the app bundle around which would break the absolute path. 如果我给它一个绝对路径到我的自定义WebKit框架一切都很完美,但这对我没有任何好处,因为用户可以移动应用程序包,这将破坏绝对路径。 Is there a way to retrieve the current location of the app bundle inside the info.plist file, for instance with a another environmental variable? 有没有办法在info.plist文件中检索应用程序包的当前位置,例如使用另一个环境变量?

在此输入图像描述

Thanks in advance. 提前致谢。

"@executable_path/../Frameworks" didn't work, how about “@executable_path /../ Frameworks”没有用,怎么样

$(EXECUTABLE_PATH)/../Frameworks $(EXECUTABLE_PATH)/../框架

this will also depend on your install directory of your custom framework, which should be referenced the same way or with the @rpath path. 这还取决于您的自定义框架的安装目录,该目录应以相同的方式或使用@rpath路径引用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM