ios - Xcode: Undefined symbols for architecture i386 -


honestly, i'm quite inexperienced in obj-c. i've looked solution on stack overflow , other pages hard i'm still not able fix issue. final project in school have program ios-app should able display data mysql-database. checked out article of code chris (http://codewithchris.com/iphone-app-connect-to-mysql-database/#creatingphpservice) , tried modify specifications school.

so here's error:

undefined symbols architecture i386: "_objc_class_$_data", referenced from: objc-class-ref in homemodel.o ld: symbol(s) not found architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation) 

as found out means homemodel-file wants access "data"-class defined in "data.h". have imported "data.h" "homemodel.m" (and "homemodel.h" although unnecessary think).

does know how fix this?

ps: checked "compile sources" of project.

i had same issue , warning disappeared after changing build settings > architectures "standard architectures" , build settings > valid architectures "armv7 armv7s armv8 arm64" projects , targets project had. hope helps.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -