“dyld: could not load inserted library '/usr/l

2019-02-07 23:46发布

When I run the app in Xcode IOS 6 beta 2 firmware on the device 8 Beta 2, I get the error message: "dyld: could not load inserted library '/ USR / Library / libgmalloc.dylib", because the image was not found. "

What could be the problem?

标签: ios8 xcode6
6条回答
倾城 Initia
2楼-- · 2019-02-08 00:03

This is because Xcode mount wrong DeveloperImage. If you open the Settings-> Developer you will see that the "Enable UIAutomation» and others are missing.

For fix:

  1. move all folders from "/Applications/Xcode6-Beta2.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport" except "8.0 (12A4297e)" to safe place
  2. reboot the phone
  3. connect your phone to xCode 6 beta 2
  4. restore folders in DeviceSupport

This is the only thing that helped me. Even re-flashing on ios8 beta2 does not helps.

查看更多
三岁会撩人
3楼-- · 2019-02-08 00:16

If you're using any 3rd party IDEs for iOS development (e.g. RubyMotion) you should be able to fix this by rebooting your device without that 3rd party IDE running and building and running an app on your device from Xcode.

查看更多
Explosion°爆炸
4楼-- · 2019-02-08 00:16

Just restart your iPhone. It worked for me.

查看更多
在下西门庆
5楼-- · 2019-02-08 00:20

Disable "Enable guard Malloc" from diagnostics to run app in device.

查看更多
仙女界的扛把子
6楼-- · 2019-02-08 00:22

Try deleting the app from the device and then reboot. Worked for me.

查看更多
何必那么认真
7楼-- · 2019-02-08 00:28

I've been seeing this on Xcode 7.1. My quick and dirty solution has been to open the right sidebar of the playground, and toggle the platform setting under "Playground Settings".

In my case, I toggled from iOS to OS X and viola, playground compiles and runs as expected.

Reboots had no effect in my case.

查看更多
登录 后发表回答