我需要为我的需求制作一个快捷的静态库。我已经创建了一份使用Swift和Objective-C代码的Swift静态库,并通过桥接文件包含了Objective-C文件。我能够编译Swift静态库,生成libMySwift.a文件,且没有任何错误。我使用Xcode9.3和Swift4编译库。
我将libMySwift.a包含在Objective-C项目中,并且还包含了Objective-C兼容的头文件来访问我的库。但是当我尝试编译项目时,它给出以下警告和200多个错误。
Auto-Linking library not found for -lswiftSwiftOnoneSupport
Auto-Linking library not found for -lswiftCore
Auto-Linking library not found for -lswiftQuartzCore
Auto-Linking library not found for -lswiftCoreImage
Auto-Linking library not found for -lswiftCoreGraphics
Auto-Linking library not found for -lswiftObjectiveC
Auto-Linking library not found for -lswiftDispatch
Auto-Linking library not found for -lswiftMetal
Auto-Linking library not found for -lswiftFoundation
Auto-Linking library not found for -lswiftUIKit
Auto-Linking library not found for -lswiftDarwin
Auto-Linking library not found for -lswiftCoreFoundation
如果我漏掉任何步骤或需要添加任何内容,请告诉我。