- Home /
problems with iOS Native Code example
After creating the xcode project from unity, when trying to build the project in xcode, I get a warning and an error. I have verified that the latest SDK is assigned and my dev provisioning profile is assigned.
BonjourClientImpl.mm:129: warning: class 'NetServiceBrowserDelegate' does not implement the 'NSNetServiceBrowserDelegate' protocol
Error: CodeSign build/bonjourclientsample.app Command /usr/bin/codesign failed with exit code 1
Answer by almaco · Jul 20, 2011 at 06:52 AM
Yep I get the same issue having followed the instructions in the read me. Anyone got any ideas? running 4.3 with XCode 4
Answer by almaco · Jul 20, 2011 at 08:04 AM
Looks like the fix is pretty simple.
in BonjourClientImpl.h add the protocol to the end of the @interface dec (line 5 for me). It should read:
@interface NetServiceBrowserDelegate : NSObject <NSNetServiceBrowserDelegate>
Your answer
Follow this Question
Related Questions
iOS Accessibility Options in Unity 1 Answer
No appropriate version of 'UnityEngine.Object.Instantiate. Please Help :( 1 Answer
Annoying warning with GUI, quick fix? 2 Answers
SCRIPT NOT WORKING 2 Answers
Mesh Inertia Tensor? 1 Answer