Wrapping static library in Cocoa Touch Framework

前端 未结 1 1745
花落未央
花落未央 2021-02-05 15:19

I have a fat static library with 2 architecture slices (armv7, arm64). I\'m trying to make it work with swift and wrap it into Cocoa Touch Framework.

What I do:

<
1条回答
  •  隐瞒了意图╮
    2021-02-05 15:39

    I think you have also forgotten to add :

    Project->Target->Build Phases->Link Binary With Libraries: add + the: libz.dylib or libz.tbd (Since Xcode 7 the *.dylib files are now *.tbd files)

    Be sure to also clean the folder: /User/yourname/Library/Developer/XCode/DerivedData

    P.S: If you want you should also be able to add the libz.tbd from "Other Linker Flags" in the Build Settings by adding the argument -lz.

    0 讨论(0)
提交回复
热议问题