您的位置:首页 > 移动开发

Starting the application on Mac does not work(拷贝platforms到不同的位置,才能解决问题),还可设置DYLD_PRINT_LIBRARIES=1 观察动态库

2016-05-27 15:40 507 查看
In some rare cases it can happen that the application does not launch and there is no reaction after double clicking on the application icon, not even the splash screen appears.

The following work-around might help in this case.

Verify issue

First please verify if the work-around applies to your issue:

Launch the Terminal.app (in Applications/Utilities)

Type the following and then hit enter:
/Applications/Dacuda\ PocketScan.app/Contents/MacOS/PocketScan



If the following message is displayed continue to the solution:
"This application failed to start because it could not find or load the Qt platform plugin "cocoa"."

If you do not see the message mentioned above the work-around will not be useful.

Apply work-around

In the terminal type the following command:
sudo cp -r /Applications/Dacuda\ PocketScan.app/Contents/PlugIns/platforms /Applications/Dacuda\ PocketScan.app/Contents/MacOS/



Enter your password

Now the application should start normally
https://dac.zendesk.com/hc/en-us/articles/205023259-Starting-the-application-on-Mac-does-not-work
另外,设置

export DYLD_PRINT_LIBRARIES=1

可以观察命令行所需的动态库
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: