“dyld:不能装入插入库”/usr/lib/libgmalloc。dylib "因为没有找到图像"

时间:2022-06-01 22:07:40

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. "

当我在设备8 beta 2的Xcode ios6 beta 2固件中运行应用程序时,我得到了错误信息:“dyld:不能加载插入的库”/ USR / library / libgmalloc。dylib,因为没有找到图像。”

What could be the problem?

有什么问题吗?

6 个解决方案

#1


35  

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

禁用“启用保护Malloc”从诊断到运行应用程序在设备。

#2


2  

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

这是因为Xcode挂错了developer图像。如果您打开设置->开发人员,您将看到“启用UIAutomation»和其他人丢失。

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. 将所有文件夹从“/应用程序/Xcode6-Beta2.app/内容/开发者/平台/ iphone操作系统”中移动。“除”8.0 (12A4297e)“到安全地点”。
  3. reboot the phone
  4. 重新启动手机
  5. connect your phone to xCode 6 beta 2
  6. 把你的手机连接到xCode 6 beta 2。
  7. restore folders in DeviceSupport
  8. 在DeviceSupport恢复文件夹

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

这是唯一帮助我的事情。即使在ios8 beta2上重新闪烁也无济于事。

#3


0  

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.

如果你使用任何第三方IDE来进行iOS开发(例如RubyMotion),你应该能够通过重启设备来解决这个问题,而无需第三方IDE运行和构建,并在设备上运行Xcode的应用程序。

#4


0  

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".

我在Xcode 7.1上看到过这个。我快速而又肮脏的解决方案是打开游戏场地右侧的侧边栏,在“操场设置”下切换平台设置。

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

在我的例子中,我从iOS切换到OS X和viola,在操场上编译并按预期运行。

Reboots had no effect in my case.

在我的情况下,再穿靴子没有效果。

#5


0  

Just restart your iPhone. It worked for me.

仅仅重启你的iPhone。它为我工作。

#6


-1  

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

尝试从设备中删除应用程序,然后重新启动。为我工作。

#1


35  

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

禁用“启用保护Malloc”从诊断到运行应用程序在设备。

#2


2  

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

这是因为Xcode挂错了developer图像。如果您打开设置->开发人员,您将看到“启用UIAutomation»和其他人丢失。

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. 将所有文件夹从“/应用程序/Xcode6-Beta2.app/内容/开发者/平台/ iphone操作系统”中移动。“除”8.0 (12A4297e)“到安全地点”。
  3. reboot the phone
  4. 重新启动手机
  5. connect your phone to xCode 6 beta 2
  6. 把你的手机连接到xCode 6 beta 2。
  7. restore folders in DeviceSupport
  8. 在DeviceSupport恢复文件夹

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

这是唯一帮助我的事情。即使在ios8 beta2上重新闪烁也无济于事。

#3


0  

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.

如果你使用任何第三方IDE来进行iOS开发(例如RubyMotion),你应该能够通过重启设备来解决这个问题,而无需第三方IDE运行和构建,并在设备上运行Xcode的应用程序。

#4


0  

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".

我在Xcode 7.1上看到过这个。我快速而又肮脏的解决方案是打开游戏场地右侧的侧边栏,在“操场设置”下切换平台设置。

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

在我的例子中,我从iOS切换到OS X和viola,在操场上编译并按预期运行。

Reboots had no effect in my case.

在我的情况下,再穿靴子没有效果。

#5


0  

Just restart your iPhone. It worked for me.

仅仅重启你的iPhone。它为我工作。

#6


-1  

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

尝试从设备中删除应用程序,然后重新启动。为我工作。