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

Compound Framework Debug Symbol Problem #123

Open odrobnik opened 10 years ago

odrobnik commented 10 years ago

Hi, I have a static framework built with the fake framework template. There is an issue that I find hard to pin down involving combining multiple static libraries.

my DTRichTextEditor.framework has code to be compiled plus has several other static libraries merged in. The problem I am facing is that the debug symbols for the "other architecture(s)" is always missing when trying to use this framework in a demo app.

I would like to pin down where the issue occurs, whether it is in the build script or if it is a problem of Xcode.

This is the sort of warning I get 101 of in my demo app, but only for i386:

GenerateDSYMFile /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditorDemo-dzdwynbdoepkhobxbezdbwsgbeyw/Build/Products/Debug-iphonesimulator/DTRichTextEditorDemo.app.dSYM /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditorDemo-dzdwynbdoepkhobxbezdbwsgbeyw/Build/Products/Debug-iphonesimulator/DTRichTextEditorDemo.app/DTRichTextEditorDemo
    cd /Users/oliver/Documents/Projects/DTRichTextEditorDemo
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/oliver/java/gradle-1.6/bin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditorDemo-dzdwynbdoepkhobxbezdbwsgbeyw/Build/Products/Debug-iphonesimulator/DTRichTextEditorDemo.app/DTRichTextEditorDemo -o /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditorDemo-dzdwynbdoepkhobxbezdbwsgbeyw/Build/Products/Debug-iphonesimulator/DTRichTextEditorDemo.app.dSYM

warning: (i386) /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditor-csmkbesknlosfucnxyappxxaaedq/Build/Products/Debug-iphonesimulator/libDTCoreText_no_DTFoundation.a(default.css.o) object file '/Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditor-csmkbesknlosfucnxyappxxaaedq/Build/Products/Debug-iphonesimulator/libDTCoreText_no_DTFoundation.a(default.css.o)' doesn't contain architecture information for i386.warning: (i386) /Users/oliver/Library/Developer/Xcode/DerivedData/DTRichTextEditor-csmkbesknlosfucnxyappxxaaedq/Build/Products/Debug-iphonesimulator/
JiesonWu commented 9 years ago

Have you solve the problem.

pieterclaerhout commented 9 years ago

This is caused by incorrect build settings in Xcode.

In the build settings for your static framework in Xcode, you need to correctly set the following two properties:

This will ensure that your static framework will run on both a real device as well as on the simulator.