kstenerud / iOS-Universal-Framework

An XCode project template to build universal frameworks (arm7, arm7s, and simulator) for iOS / iPhone.
2.95k stars 473 forks source link

Sharing with other developers - linker warning #26

Open stitch84 opened 12 years ago

stitch84 commented 12 years ago

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

kstenerud commented 12 years ago

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.

0xced commented 12 years ago

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.

stitch84 commented 12 years ago

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?

sapessi commented 11 years ago

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 commented 11 years ago

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