You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this problem because XcodeEditor doesn't support .tbd file,
I add Dylib = 24 in XcodeSourceFileType.h
and @"sourcecode.text-based-dylib-definition" : @(Dylib) in XcodeSourceFileType.m(NSDictionaryWithXCFileReferenceTypes).
At last, I copy a new function from function :- (void)addFramework:(XCFrameworkDefinition *)frameworkDefinition; in XCGourp.m .
I change:
fileReference = [self makeFileReferenceWithPath:path name:name type:Framework]
to
fileReference = [self makeFileReferenceWithPath:path name:name type:Dylib]
I'm a new programmer ,and if I was wrong, forgive me .
Activity
cezheng commentedon Sep 24, 2015
linking against *.tbd libraries seems to be an unfinished feature in xcode 7, try adding -lz in the OTHER_LD_FLAGS which will do what you want
wlevene commentedon Sep 24, 2015
i wish the author will finish link *.tbd libraries feature in xcode 7 soon, ;)
cezheng commentedon Sep 24, 2015
I guess the tbd issue is not XcodeEditor's problem but a problem of Xcode itself, so I guess this issue should be closed
wlevene commentedon Sep 24, 2015
the reason is the pbxproj file format is changed, may be need to support it in XcodeEditor
cezheng commentedon Sep 24, 2015
I don't think so. Even if you manually add the libz.tbd to your project in Xcode, it fails
wlevene commentedon Sep 24, 2015
i manually add the libz.tbd to my project in Xcode, it is ok

cezheng commentedon Sep 24, 2015
Oh, maybe *.tbd cannot be used in a static library project. I have a static library project and if I add a tbd file the build just fails
jasperblues commentedon Nov 21, 2015
@cezheng @gangwang Agree we can close this?
akame commentedon Dec 24, 2015
I think this problem because XcodeEditor doesn't support .tbd file,
I add Dylib = 24 in XcodeSourceFileType.h
and @"sourcecode.text-based-dylib-definition" : @(Dylib) in XcodeSourceFileType.m(NSDictionaryWithXCFileReferenceTypes).
At last, I copy a new function from function :- (void)addFramework:(XCFrameworkDefinition *)frameworkDefinition; in XCGourp.m .
I change:
fileReference = [self makeFileReferenceWithPath:path name:name type:Framework]
to
fileReference = [self makeFileReferenceWithPath:path name:name type:Dylib]
I'm a new programmer ,and if I was wrong, forgive me .
wlevene commentedon Apr 6, 2016
@akame hahaha~~~~~ thank you! you are right, i follow u step, it works! @jasperblues
forwardto9 commentedon Nov 17, 2016
@akame nice! but you also add buidPharse item