Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling zombie Objects on Xcode 7 GM causes Class _NSZombie_BSXPCMessage is implemented in both ?? and?

Tags:

xcode

ios

Just downloaded XCode 7 GM and give a try on iOS 9 simulator of my app. However, I got a strange message on the console:

objc[2213]: Class _NSZombie_BSXPCMessage is implemented in both ?? and ??. One of the two will be used. Which one is undefined.

I then googled and no luck. If I disable the enable zombie objects in scheme settings, the message is gone. What's wrong?

Update: I tested it again on Xcode 6.4, no this problem.

like image 718
Wingzero Avatar asked Sep 11 '15 01:09

Wingzero


People also ask

What is zombie object swift?

Overview. Once an Objective-C or Swift object no longer has any strong references to it, the object is deallocated. Attempting to further send messages to the object as if it were still a valid object is a “use after free” issue, with the deallocated object still receiving messages called a zombie object.

What is zombie objects?

Zombie objects are a debugging feature of Cocoa / CoreFoundation to help you catch memory errors - normally when an object's refcount drops to zero it's freed immediately, but that makes debugging difficult.

How do you enable objects in zombies?

You need to open the Product menu in the Xcode, select Edit scheme and then choose the Diagnostics tab. There you have "Enable Zombie Objects". Once selected and run in debugger will point you to the double released object! Enjoy!


1 Answers

First of all delete your installed application from ios simulator or device,after that clean your projects. When you will run your application, it should run your Projects properly without any errors.

I have also faced same problem.I have used above, it was worked for me.

If above is not working, so please clean your build cmd+alt+shift+k and also reboot your ios simulator from hardware menu. it should run your Projects properly without any errors.

like image 74
Gaurav Tripathi Avatar answered Oct 17 '22 22:10

Gaurav Tripathi