How to add the j2objc generated .o files in xcode?
I'm having Apple Mach-O Linker Errors when compile with Xcode.
my .h file has added to Xcode in build setting/header search paths/{my .m files destination}
I've never needed to add .o files. When a j2objc build rule is used, just add the Java source files to the project and they are automatically built with the project (here is a sample project). Otherwise, add the translated .m and .h files to the project. In either case, the translated .m files are compiled using the same compilation flags as the rest of your project.
I find it easiest to add a "Transpiled Classes" group to the project (right-click on the project, select "New Group"), then right-click on the new group and select "Add Files to ". Select the translated files (use click and shift-click to add them in bulk), and select the target where they should be added.