Hi, I encountered the following error while trying to build an iOS plugin I created for Unity. Can anyone please help me fix this error and successfully build this app? Undefined symbols for architecture armv7: "_Foo", referenced from: _Bar_Foo_m2346119406 in Bulk_Assembly-CSharp_0.o (maybe you meant: _Bar_Foo_m2346119406) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation) Here's my Unity C# code: Code (CSharp): public class Bar : MonoBehaviour { ... [DllImport("__Internal")] private static extern void Foo(string URL, string Quote); ... } Here's my Objective-C header: Code (CSharp): // // FooUtil.h // // #ifndef FooUtil_h #define FooUtil_h #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> @interface FooUtil : NSObject + (void)Foo:(const char*)URL :(const char*)Quote; @end #endif /* FooUtil_h */ Here's my class file code in Objective-C: Code (CSharp): // // FooUtil.m // #import "FooUtil.h" #import <Foundation/Foundation.h> @interface FooUtil () @end @implementation FooUtil + (void)Foo:(const char*)URL :(const char*)Quote { } @end I've never actually written Objective-C code so I have no idea what I'm doing.
Okay I successfully built the plugin by removing the header file, and changing my Objective-C code to the following: Code (CSharp): // // FooUtil.m // #import <Foundation/Foundation.h> void Foo(const char* URL, const char* Quote) { }