iOS-Universal-Framework icon indicating copy to clipboard operation
iOS-Universal-Framework copied to clipboard

Sharing with other developers - linker warning

Open stitch84 opened this issue 14 years ago • 5 comments

Hi,

i can successfully build my framework and work with it on my own Mac. But there are problems when i share this framework with other developers.

There´s following linker warning:

ld: warning: directory not found for option '-F/Users/michael 1/Documents/Projekte/iPhone/SVN/test/test/fwtest/../../../../../Library/Developer/Xcode/DerivedData/MyFramework-fognfixcojlotibypyqsmfowrxgk/Build/Products/Debug-iphoneos/MyFramework.embeddedframework'

Why does XCode search something in the DerivedDate folder? That does not make sense to me.

Hope you can help me with that

stitch84 avatar Oct 05 '11 23:10 stitch84

Check your build settings for your framework and make sure "Strip Linked Product" is set to Yes.

Weird that it's not doing that by default. I'll have to take another look at the template.

kstenerud avatar Oct 05 '11 23:10 kstenerud

You can't strip a static library (nor an object file), only an app can be stripped. The problem here is because your embedded framework should be installed in a path common to all developers using it. The path MyFramework-fognfixcojlotibypyqsmfowrxgk probably does not exist on another machine.

0xced avatar Oct 06 '11 15:10 0xced

Hey kstenerud and 0xced,

thanks for your help. I had no time to try the suggestion yet.

@0xced: Do you know a setting in xcode where i can change this path?

stitch84 avatar Oct 06 '11 17:10 stitch84

I have seen this too and the temporary fix I found is to set the Debug Information Build Settings to DWARF instead of "DWARF with dSym file" for both your framework and the application. I'm wondering whether there's any way to include the .o objects in the .framework so it can be redistributed without this issue

sapessi avatar Mar 03 '13 18:03 sapessi

And I found the fix. You need to set the GCC_GENERATE_DEBUGGING_SYMBOLS of the framework project to NO - the bundle will not look for these .o object

sapessi avatar Mar 03 '13 18:03 sapessi