BerTlv
BerTlv copied to clipboard
How to integrate this into iOS Swift framework?
Thanks!
Hi Johnny,
If you are using Cocoapods:
- Create
Podfile
and add BerTlv podspec to it - Run
pod install
- Run
open your-project.xcworkspace
- Add Bridging-Header.h file to your project
#ifndef Bridging_Header_h
#define Bridging_Header_h
#import <BerTlv/BerTag.h>
#import <BerTlv/BerTlv.h>
#import <BerTlv/BerTlvBuilder.h>
#import <BerTlv/BerTlvParser.h>
#import <BerTlv/BerTlvs.h>
#import <BerTlv/HexUtil.h>
#endif /* Bridging_Header_h */
- Drug the Bridging-Header.h file to Build Settings / Objective-C Bridging Header
If you are using Carthage
- Create
Cartfile
and add the following line to it
github "evsinev/BerTlv" "0.2.3"
- Run
carthage update --platform iOS
- Run
open your-project.xcodeproj
- On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section add the following frameworks:
Carthage/Build/iOS/BerTlv.framework
- On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex:
/bin/sh
), add the following contents to the script area below the shell:
/usr/local/bin/carthage copy-frameworks