├── Screenshots └── screenshot.png ├── Example ├── FCBBarCodeGenerator │ ├── Assets.xcassets │ │ ├── Contents.json │ │ ├── test.imageset │ │ │ ├── test.png │ │ │ └── Contents.json │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ ├── Info.plist │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ ├── ViewController.swift │ └── AppDelegate.swift ├── FCBBarCodeGenerator.xcodeproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── project.pbxproj └── FCBBarCodeGeneratorTests │ ├── Info.plist │ └── FCBBarCodeGeneratorTests.swift ├── README.md ├── LICENSE ├── Generator └── FCBBarCodeGenerator.swift └── .gitignore /Screenshots/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bunn/FCBBarCodeGenerator/HEAD/Screenshots/screenshot.png -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Assets.xcassets/test.imageset/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Bunn/FCBBarCodeGenerator/HEAD/Example/FCBBarCodeGenerator/Assets.xcassets/test.imageset/test.png -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Assets.xcassets/test.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "test.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x" 15 | } 16 | ], 17 | "info" : { 18 | "version" : 1, 19 | "author" : "xcode" 20 | } 21 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FCBBarCodeGenerator 2 | Simple BarCode Generator written in Swift 3 | 4 | ## Installation 5 | Just drag `FCBBarCodeGenerator.swift` to your project. 6 | 7 | ## How to use 8 | ```swift 9 | let codeGenerator = FCBBarCodeGenerator() 10 | let size = CGSize(width: 100, height: 100) 11 | let code = "My Code" 12 | let type = FCBBarcodeType.qrcode 13 | 14 | if let image = codeGenerator.barcode(code: code, type: type, size: size) { 15 | imageView.image = image 16 | } else { 17 | imageView.image = nil 18 | } 19 | ``` 20 | 21 | ## Screenshots 22 | ![QRCode](/Screenshots/screenshot.png?raw=true "QRCode") 23 | 24 | ## License 25 | **FCBBarCodeGenerator** is released under the MIT license. See the LICENSE file for more info. 26 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGeneratorTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Fernando Bunn 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGeneratorTests/FCBBarCodeGeneratorTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FCBBarCodeGeneratorTests.swift 3 | // FCBBarCodeGeneratorTests 4 | // 5 | // Created by Ezequiel França on 15/03/17. 6 | // Copyright © 2017 iDevzilla. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | 11 | class FCBBarCodeGeneratorTests: XCTestCase { 12 | 13 | func testCodeBarGenerator() { 14 | 15 | let text = "testCodeBarGenerator" 16 | let size = CGSize(width: 100.0, height: 100.0) 17 | let codeGenerator = FCBBarCodeGenerator() 18 | XCTAssertNotNil(codeGenerator) 19 | XCTAssertNotNil(size) 20 | XCTAssertNotNil(text) 21 | XCTAssertEqual(text, "testCodeBarGenerator") 22 | 23 | let qrcode = codeGenerator.barcode(code: text, type: .qrcode, size: size) 24 | XCTAssertNotNil(qrcode) 25 | let pdf147 = codeGenerator.barcode(code: text, type: .pdf417, size: size) 26 | XCTAssertNotNil(pdf147) 27 | let aztec = codeGenerator.barcode(code: text, type: .aztec, size: size) 28 | XCTAssertNotNil(aztec) 29 | let code128 = codeGenerator.barcode(code: text, type: .code128, size: size) 30 | XCTAssertNotNil(code128) 31 | 32 | } 33 | 34 | } 35 | 36 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "83.5x83.5", 66 | "scale" : "2x" 67 | } 68 | ], 69 | "info" : { 70 | "version" : 1, 71 | "author" : "xcode" 72 | } 73 | } -------------------------------------------------------------------------------- /Generator/FCBBarCodeGenerator.swift: -------------------------------------------------------------------------------- 1 | import Foundation 2 | import UIKit 3 | 4 | enum FCBBarcodeType : String { 5 | case qrcode = "CIQRCodeGenerator" 6 | case pdf417 = "CIPDF417BarcodeGenerator" 7 | case code128 = "CICode128BarcodeGenerator" 8 | case aztec = "CIAztecCodeGenerator" 9 | } 10 | 11 | 12 | struct FCBBarCodeGenerator { 13 | 14 | 15 | // MARK: Public Methods 16 | 17 | func barcode(code: String, type: FCBBarcodeType, size: CGSize) -> UIImage? { 18 | if let filter = filter(code: code, type: type) { 19 | return image(filter: filter, size: size) 20 | } 21 | 22 | return nil 23 | } 24 | 25 | 26 | // MARK: Private Methods 27 | 28 | fileprivate func image(filter : CIFilter, size: CGSize) -> UIImage? { 29 | if let image = filter.outputImage { 30 | 31 | let scaleX = size.width / image.extent.size.width 32 | let scaleY = size.height / image.extent.size.height 33 | let transformedImage = image.applying(CGAffineTransform(scaleX: scaleX, y: scaleY)) 34 | 35 | return UIImage(ciImage: transformedImage) 36 | } 37 | return nil 38 | } 39 | 40 | fileprivate func filter(code: String, type: FCBBarcodeType) -> CIFilter? { 41 | if let filter = CIFilter(name: type.rawValue) { 42 | guard let data = code.data(using: String.Encoding.utf8, allowLossyConversion: false) else { return nil } 43 | filter.setValue(data, forKey: "inputMessage") 44 | 45 | return filter 46 | } 47 | return nil 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata 19 | 20 | ## Other 21 | *.xccheckout 22 | *.moved-aside 23 | *.xcuserstate 24 | *.xcscmblueprint 25 | *.DS_Store 26 | 27 | ## Obj-C/Swift specific 28 | *.hmap 29 | *.ipa 30 | 31 | ## Playgrounds 32 | timeline.xctimeline 33 | playground.xcworkspace 34 | 35 | # Swift Package Manager 36 | # 37 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 38 | # Packages/ 39 | .build/ 40 | 41 | # CocoaPods 42 | # 43 | # We recommend against adding the Pods directory to your .gitignore. However 44 | # you should judge for yourself, the pros and cons are mentioned at: 45 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 46 | # 47 | # Pods/ 48 | 49 | # Carthage 50 | # 51 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 52 | # Carthage/Checkouts 53 | 54 | Carthage/Build 55 | 56 | # fastlane 57 | # 58 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 59 | # screenshots whenever they are needed. 60 | # For more information about the recommended setup visit: 61 | # https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md 62 | 63 | fastlane/report.xml 64 | fastlane/screenshots 65 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | UISupportedInterfaceOrientations~ipad 40 | 41 | UIInterfaceOrientationPortrait 42 | UIInterfaceOrientationPortraitUpsideDown 43 | UIInterfaceOrientationLandscapeLeft 44 | UIInterfaceOrientationLandscapeRight 45 | 46 | 47 | 48 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/ViewController.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | 4 | class ViewController: UIViewController { 5 | 6 | @IBOutlet weak var imageView: UIImageView! 7 | @IBOutlet weak var textField: UITextField! 8 | @IBOutlet weak var segmentedControl: UISegmentedControl! 9 | @IBOutlet weak var imageContainer: UIView! 10 | let codeGenerator = FCBBarCodeGenerator() 11 | 12 | 13 | @IBAction func generateButtonTapped() { 14 | 15 | if let text = textField.text { 16 | var type : FCBBarcodeType 17 | var size : CGSize 18 | let smallerSide = min(imageContainer.frame.size.width, imageContainer.frame.height) 19 | 20 | switch segmentedControl.selectedSegmentIndex { 21 | case 0 : type = .qrcode 22 | size = CGSize(width: smallerSide, height: smallerSide) 23 | 24 | case 1 : type = .code128 25 | size = CGSize(width: imageContainer.frame.width, height: imageContainer.frame.width / 2) 26 | 27 | case 2 : type = .pdf417 28 | size = CGSize(width: imageContainer.frame.width, height: imageContainer.frame.width / 2) 29 | 30 | case 3 : type = .aztec 31 | size = CGSize(width: smallerSide, height: smallerSide) 32 | 33 | default: 34 | type = .qrcode 35 | size = CGSize(width: smallerSide, height: smallerSide) 36 | break 37 | } 38 | 39 | 40 | if let image = codeGenerator.barcode(code: text, type: type, size: size) { 41 | imageView.image = image 42 | } else { 43 | imageView.image = nil 44 | } 45 | } 46 | } 47 | } 48 | 49 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | 2 | import UIKit 3 | 4 | @UIApplicationMain 5 | class AppDelegate: UIResponder, UIApplicationDelegate { 6 | 7 | var window: UIWindow? 8 | 9 | 10 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 11 | return true 12 | } 13 | 14 | func applicationWillResignActive(_ application: UIApplication) { 15 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 16 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 17 | } 18 | 19 | func applicationDidEnterBackground(_ application: UIApplication) { 20 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 21 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 22 | } 23 | 24 | func applicationWillEnterForeground(_ application: UIApplication) { 25 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 26 | } 27 | 28 | func applicationDidBecomeActive(_ application: UIApplication) { 29 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 30 | } 31 | 32 | func applicationWillTerminate(_ application: UIApplication) { 33 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 34 | } 35 | 36 | 37 | } 38 | 39 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /Example/FCBBarCodeGenerator.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 31108BF91C8247FD00CFF948 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31108BF81C8247FD00CFF948 /* AppDelegate.swift */; }; 11 | 31108BFB1C8247FD00CFF948 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 31108BFA1C8247FD00CFF948 /* ViewController.swift */; }; 12 | 31108BFE1C8247FD00CFF948 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31108BFC1C8247FD00CFF948 /* Main.storyboard */; }; 13 | 31108C001C8247FD00CFF948 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 31108BFF1C8247FD00CFF948 /* Assets.xcassets */; }; 14 | 31108C031C8247FD00CFF948 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 31108C011C8247FD00CFF948 /* LaunchScreen.storyboard */; }; 15 | 312835E81C8B520E00B7B025 /* FCBBarCodeGenerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 312835E71C8B520E00B7B025 /* FCBBarCodeGenerator.swift */; }; 16 | B670332D1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = B670332C1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.swift */; }; 17 | B67033341E798C1500B48DA1 /* FCBBarCodeGenerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 312835E71C8B520E00B7B025 /* FCBBarCodeGenerator.swift */; }; 18 | /* End PBXBuildFile section */ 19 | 20 | /* Begin PBXContainerItemProxy section */ 21 | B670332F1E798BD000B48DA1 /* PBXContainerItemProxy */ = { 22 | isa = PBXContainerItemProxy; 23 | containerPortal = 31108BED1C8247FD00CFF948 /* Project object */; 24 | proxyType = 1; 25 | remoteGlobalIDString = 31108BF41C8247FD00CFF948; 26 | remoteInfo = FCBBarCodeGenerator; 27 | }; 28 | /* End PBXContainerItemProxy section */ 29 | 30 | /* Begin PBXFileReference section */ 31 | 31108BF51C8247FD00CFF948 /* FCBBarCodeGenerator.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FCBBarCodeGenerator.app; sourceTree = BUILT_PRODUCTS_DIR; }; 32 | 31108BF81C8247FD00CFF948 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 33 | 31108BFA1C8247FD00CFF948 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 34 | 31108BFD1C8247FD00CFF948 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 35 | 31108BFF1C8247FD00CFF948 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 36 | 31108C021C8247FD00CFF948 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 37 | 31108C041C8247FD00CFF948 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 38 | 312835E71C8B520E00B7B025 /* FCBBarCodeGenerator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = FCBBarCodeGenerator.swift; path = ../../Generator/FCBBarCodeGenerator.swift; sourceTree = ""; }; 39 | B670332A1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = FCBBarCodeGeneratorTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 40 | B670332C1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FCBBarCodeGeneratorTests.swift; sourceTree = ""; }; 41 | B670332E1E798BD000B48DA1 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 42 | /* End PBXFileReference section */ 43 | 44 | /* Begin PBXFrameworksBuildPhase section */ 45 | 31108BF21C8247FD00CFF948 /* Frameworks */ = { 46 | isa = PBXFrameworksBuildPhase; 47 | buildActionMask = 2147483647; 48 | files = ( 49 | ); 50 | runOnlyForDeploymentPostprocessing = 0; 51 | }; 52 | B67033271E798BD000B48DA1 /* Frameworks */ = { 53 | isa = PBXFrameworksBuildPhase; 54 | buildActionMask = 2147483647; 55 | files = ( 56 | ); 57 | runOnlyForDeploymentPostprocessing = 0; 58 | }; 59 | /* End PBXFrameworksBuildPhase section */ 60 | 61 | /* Begin PBXGroup section */ 62 | 31108BEC1C8247FD00CFF948 = { 63 | isa = PBXGroup; 64 | children = ( 65 | 31108BF71C8247FD00CFF948 /* FCBBarCodeGenerator */, 66 | B670332B1E798BD000B48DA1 /* FCBBarCodeGeneratorTests */, 67 | 31108BF61C8247FD00CFF948 /* Products */, 68 | ); 69 | sourceTree = ""; 70 | }; 71 | 31108BF61C8247FD00CFF948 /* Products */ = { 72 | isa = PBXGroup; 73 | children = ( 74 | 31108BF51C8247FD00CFF948 /* FCBBarCodeGenerator.app */, 75 | B670332A1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.xctest */, 76 | ); 77 | name = Products; 78 | sourceTree = ""; 79 | }; 80 | 31108BF71C8247FD00CFF948 /* FCBBarCodeGenerator */ = { 81 | isa = PBXGroup; 82 | children = ( 83 | 31108BFA1C8247FD00CFF948 /* ViewController.swift */, 84 | 312835E71C8B520E00B7B025 /* FCBBarCodeGenerator.swift */, 85 | 31108C0B1C82483A00CFF948 /* UI */, 86 | 31108C0A1C82480800CFF948 /* Supporting Files */, 87 | ); 88 | path = FCBBarCodeGenerator; 89 | sourceTree = ""; 90 | }; 91 | 31108C0A1C82480800CFF948 /* Supporting Files */ = { 92 | isa = PBXGroup; 93 | children = ( 94 | 31108BF81C8247FD00CFF948 /* AppDelegate.swift */, 95 | 31108BFF1C8247FD00CFF948 /* Assets.xcassets */, 96 | 31108C011C8247FD00CFF948 /* LaunchScreen.storyboard */, 97 | 31108C041C8247FD00CFF948 /* Info.plist */, 98 | ); 99 | name = "Supporting Files"; 100 | sourceTree = ""; 101 | }; 102 | 31108C0B1C82483A00CFF948 /* UI */ = { 103 | isa = PBXGroup; 104 | children = ( 105 | 31108BFC1C8247FD00CFF948 /* Main.storyboard */, 106 | ); 107 | name = UI; 108 | sourceTree = ""; 109 | }; 110 | B670332B1E798BD000B48DA1 /* FCBBarCodeGeneratorTests */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | B670332C1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.swift */, 114 | B670332E1E798BD000B48DA1 /* Info.plist */, 115 | ); 116 | path = FCBBarCodeGeneratorTests; 117 | sourceTree = ""; 118 | }; 119 | /* End PBXGroup section */ 120 | 121 | /* Begin PBXNativeTarget section */ 122 | 31108BF41C8247FD00CFF948 /* FCBBarCodeGenerator */ = { 123 | isa = PBXNativeTarget; 124 | buildConfigurationList = 31108C071C8247FD00CFF948 /* Build configuration list for PBXNativeTarget "FCBBarCodeGenerator" */; 125 | buildPhases = ( 126 | 31108BF11C8247FD00CFF948 /* Sources */, 127 | 31108BF21C8247FD00CFF948 /* Frameworks */, 128 | 31108BF31C8247FD00CFF948 /* Resources */, 129 | ); 130 | buildRules = ( 131 | ); 132 | dependencies = ( 133 | ); 134 | name = FCBBarCodeGenerator; 135 | productName = FCBBarCodeGenerator; 136 | productReference = 31108BF51C8247FD00CFF948 /* FCBBarCodeGenerator.app */; 137 | productType = "com.apple.product-type.application"; 138 | }; 139 | B67033291E798BD000B48DA1 /* FCBBarCodeGeneratorTests */ = { 140 | isa = PBXNativeTarget; 141 | buildConfigurationList = B67033311E798BD000B48DA1 /* Build configuration list for PBXNativeTarget "FCBBarCodeGeneratorTests" */; 142 | buildPhases = ( 143 | B67033261E798BD000B48DA1 /* Sources */, 144 | B67033271E798BD000B48DA1 /* Frameworks */, 145 | B67033281E798BD000B48DA1 /* Resources */, 146 | ); 147 | buildRules = ( 148 | ); 149 | dependencies = ( 150 | B67033301E798BD000B48DA1 /* PBXTargetDependency */, 151 | ); 152 | name = FCBBarCodeGeneratorTests; 153 | productName = FCBBarCodeGeneratorTests; 154 | productReference = B670332A1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.xctest */; 155 | productType = "com.apple.product-type.bundle.unit-test"; 156 | }; 157 | /* End PBXNativeTarget section */ 158 | 159 | /* Begin PBXProject section */ 160 | 31108BED1C8247FD00CFF948 /* Project object */ = { 161 | isa = PBXProject; 162 | attributes = { 163 | LastSwiftUpdateCheck = 0820; 164 | LastUpgradeCheck = 0820; 165 | ORGANIZATIONNAME = iDevzilla; 166 | TargetAttributes = { 167 | 31108BF41C8247FD00CFF948 = { 168 | CreatedOnToolsVersion = 7.2; 169 | LastSwiftMigration = 0820; 170 | }; 171 | B67033291E798BD000B48DA1 = { 172 | CreatedOnToolsVersion = 8.2.1; 173 | ProvisioningStyle = Automatic; 174 | TestTargetID = 31108BF41C8247FD00CFF948; 175 | }; 176 | }; 177 | }; 178 | buildConfigurationList = 31108BF01C8247FD00CFF948 /* Build configuration list for PBXProject "FCBBarCodeGenerator" */; 179 | compatibilityVersion = "Xcode 3.2"; 180 | developmentRegion = English; 181 | hasScannedForEncodings = 0; 182 | knownRegions = ( 183 | en, 184 | Base, 185 | ); 186 | mainGroup = 31108BEC1C8247FD00CFF948; 187 | productRefGroup = 31108BF61C8247FD00CFF948 /* Products */; 188 | projectDirPath = ""; 189 | projectRoot = ""; 190 | targets = ( 191 | 31108BF41C8247FD00CFF948 /* FCBBarCodeGenerator */, 192 | B67033291E798BD000B48DA1 /* FCBBarCodeGeneratorTests */, 193 | ); 194 | }; 195 | /* End PBXProject section */ 196 | 197 | /* Begin PBXResourcesBuildPhase section */ 198 | 31108BF31C8247FD00CFF948 /* Resources */ = { 199 | isa = PBXResourcesBuildPhase; 200 | buildActionMask = 2147483647; 201 | files = ( 202 | 31108C031C8247FD00CFF948 /* LaunchScreen.storyboard in Resources */, 203 | 31108C001C8247FD00CFF948 /* Assets.xcassets in Resources */, 204 | 31108BFE1C8247FD00CFF948 /* Main.storyboard in Resources */, 205 | ); 206 | runOnlyForDeploymentPostprocessing = 0; 207 | }; 208 | B67033281E798BD000B48DA1 /* Resources */ = { 209 | isa = PBXResourcesBuildPhase; 210 | buildActionMask = 2147483647; 211 | files = ( 212 | ); 213 | runOnlyForDeploymentPostprocessing = 0; 214 | }; 215 | /* End PBXResourcesBuildPhase section */ 216 | 217 | /* Begin PBXSourcesBuildPhase section */ 218 | 31108BF11C8247FD00CFF948 /* Sources */ = { 219 | isa = PBXSourcesBuildPhase; 220 | buildActionMask = 2147483647; 221 | files = ( 222 | 312835E81C8B520E00B7B025 /* FCBBarCodeGenerator.swift in Sources */, 223 | 31108BFB1C8247FD00CFF948 /* ViewController.swift in Sources */, 224 | 31108BF91C8247FD00CFF948 /* AppDelegate.swift in Sources */, 225 | ); 226 | runOnlyForDeploymentPostprocessing = 0; 227 | }; 228 | B67033261E798BD000B48DA1 /* Sources */ = { 229 | isa = PBXSourcesBuildPhase; 230 | buildActionMask = 2147483647; 231 | files = ( 232 | B67033341E798C1500B48DA1 /* FCBBarCodeGenerator.swift in Sources */, 233 | B670332D1E798BD000B48DA1 /* FCBBarCodeGeneratorTests.swift in Sources */, 234 | ); 235 | runOnlyForDeploymentPostprocessing = 0; 236 | }; 237 | /* End PBXSourcesBuildPhase section */ 238 | 239 | /* Begin PBXTargetDependency section */ 240 | B67033301E798BD000B48DA1 /* PBXTargetDependency */ = { 241 | isa = PBXTargetDependency; 242 | target = 31108BF41C8247FD00CFF948 /* FCBBarCodeGenerator */; 243 | targetProxy = B670332F1E798BD000B48DA1 /* PBXContainerItemProxy */; 244 | }; 245 | /* End PBXTargetDependency section */ 246 | 247 | /* Begin PBXVariantGroup section */ 248 | 31108BFC1C8247FD00CFF948 /* Main.storyboard */ = { 249 | isa = PBXVariantGroup; 250 | children = ( 251 | 31108BFD1C8247FD00CFF948 /* Base */, 252 | ); 253 | name = Main.storyboard; 254 | sourceTree = ""; 255 | }; 256 | 31108C011C8247FD00CFF948 /* LaunchScreen.storyboard */ = { 257 | isa = PBXVariantGroup; 258 | children = ( 259 | 31108C021C8247FD00CFF948 /* Base */, 260 | ); 261 | name = LaunchScreen.storyboard; 262 | sourceTree = ""; 263 | }; 264 | /* End PBXVariantGroup section */ 265 | 266 | /* Begin XCBuildConfiguration section */ 267 | 31108C051C8247FD00CFF948 /* Debug */ = { 268 | isa = XCBuildConfiguration; 269 | buildSettings = { 270 | ALWAYS_SEARCH_USER_PATHS = NO; 271 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 272 | CLANG_CXX_LIBRARY = "libc++"; 273 | CLANG_ENABLE_MODULES = YES; 274 | CLANG_ENABLE_OBJC_ARC = YES; 275 | CLANG_WARN_BOOL_CONVERSION = YES; 276 | CLANG_WARN_CONSTANT_CONVERSION = YES; 277 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 278 | CLANG_WARN_EMPTY_BODY = YES; 279 | CLANG_WARN_ENUM_CONVERSION = YES; 280 | CLANG_WARN_INFINITE_RECURSION = YES; 281 | CLANG_WARN_INT_CONVERSION = YES; 282 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 283 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 284 | CLANG_WARN_UNREACHABLE_CODE = YES; 285 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 286 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 287 | COPY_PHASE_STRIP = NO; 288 | DEBUG_INFORMATION_FORMAT = dwarf; 289 | ENABLE_STRICT_OBJC_MSGSEND = YES; 290 | ENABLE_TESTABILITY = YES; 291 | GCC_C_LANGUAGE_STANDARD = gnu99; 292 | GCC_DYNAMIC_NO_PIC = NO; 293 | GCC_NO_COMMON_BLOCKS = YES; 294 | GCC_OPTIMIZATION_LEVEL = 0; 295 | GCC_PREPROCESSOR_DEFINITIONS = ( 296 | "DEBUG=1", 297 | "$(inherited)", 298 | ); 299 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 300 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 301 | GCC_WARN_UNDECLARED_SELECTOR = YES; 302 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 303 | GCC_WARN_UNUSED_FUNCTION = YES; 304 | GCC_WARN_UNUSED_VARIABLE = YES; 305 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 306 | MTL_ENABLE_DEBUG_INFO = YES; 307 | ONLY_ACTIVE_ARCH = YES; 308 | SDKROOT = iphoneos; 309 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 310 | TARGETED_DEVICE_FAMILY = "1,2"; 311 | }; 312 | name = Debug; 313 | }; 314 | 31108C061C8247FD00CFF948 /* Release */ = { 315 | isa = XCBuildConfiguration; 316 | buildSettings = { 317 | ALWAYS_SEARCH_USER_PATHS = NO; 318 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 319 | CLANG_CXX_LIBRARY = "libc++"; 320 | CLANG_ENABLE_MODULES = YES; 321 | CLANG_ENABLE_OBJC_ARC = YES; 322 | CLANG_WARN_BOOL_CONVERSION = YES; 323 | CLANG_WARN_CONSTANT_CONVERSION = YES; 324 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 325 | CLANG_WARN_EMPTY_BODY = YES; 326 | CLANG_WARN_ENUM_CONVERSION = YES; 327 | CLANG_WARN_INFINITE_RECURSION = YES; 328 | CLANG_WARN_INT_CONVERSION = YES; 329 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 330 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 331 | CLANG_WARN_UNREACHABLE_CODE = YES; 332 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 333 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 334 | COPY_PHASE_STRIP = NO; 335 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 336 | ENABLE_NS_ASSERTIONS = NO; 337 | ENABLE_STRICT_OBJC_MSGSEND = YES; 338 | GCC_C_LANGUAGE_STANDARD = gnu99; 339 | GCC_NO_COMMON_BLOCKS = YES; 340 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 341 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 342 | GCC_WARN_UNDECLARED_SELECTOR = YES; 343 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 344 | GCC_WARN_UNUSED_FUNCTION = YES; 345 | GCC_WARN_UNUSED_VARIABLE = YES; 346 | IPHONEOS_DEPLOYMENT_TARGET = 9.2; 347 | MTL_ENABLE_DEBUG_INFO = NO; 348 | SDKROOT = iphoneos; 349 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 350 | TARGETED_DEVICE_FAMILY = "1,2"; 351 | VALIDATE_PRODUCT = YES; 352 | }; 353 | name = Release; 354 | }; 355 | 31108C081C8247FD00CFF948 /* Debug */ = { 356 | isa = XCBuildConfiguration; 357 | buildSettings = { 358 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 359 | INFOPLIST_FILE = FCBBarCodeGenerator/Info.plist; 360 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 361 | PRODUCT_BUNDLE_IDENTIFIER = com.idevzilla.FCBBarCodeGenerator; 362 | PRODUCT_NAME = "$(TARGET_NAME)"; 363 | SWIFT_VERSION = 3.0; 364 | }; 365 | name = Debug; 366 | }; 367 | 31108C091C8247FD00CFF948 /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | buildSettings = { 370 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 371 | INFOPLIST_FILE = FCBBarCodeGenerator/Info.plist; 372 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 373 | PRODUCT_BUNDLE_IDENTIFIER = com.idevzilla.FCBBarCodeGenerator; 374 | PRODUCT_NAME = "$(TARGET_NAME)"; 375 | SWIFT_VERSION = 3.0; 376 | }; 377 | name = Release; 378 | }; 379 | B67033321E798BD000B48DA1 /* Debug */ = { 380 | isa = XCBuildConfiguration; 381 | buildSettings = { 382 | BUNDLE_LOADER = "$(TEST_HOST)"; 383 | CLANG_ANALYZER_NONNULL = YES; 384 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 385 | CLANG_WARN_INFINITE_RECURSION = YES; 386 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 387 | INFOPLIST_FILE = FCBBarCodeGeneratorTests/Info.plist; 388 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 389 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 390 | PRODUCT_BUNDLE_IDENTIFIER = ezefranca.com.FCBBarCodeGeneratorTests; 391 | PRODUCT_NAME = "$(TARGET_NAME)"; 392 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 393 | SWIFT_VERSION = 3.0; 394 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FCBBarCodeGenerator.app/FCBBarCodeGenerator"; 395 | }; 396 | name = Debug; 397 | }; 398 | B67033331E798BD000B48DA1 /* Release */ = { 399 | isa = XCBuildConfiguration; 400 | buildSettings = { 401 | BUNDLE_LOADER = "$(TEST_HOST)"; 402 | CLANG_ANALYZER_NONNULL = YES; 403 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 404 | CLANG_WARN_INFINITE_RECURSION = YES; 405 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 406 | INFOPLIST_FILE = FCBBarCodeGeneratorTests/Info.plist; 407 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 408 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 409 | PRODUCT_BUNDLE_IDENTIFIER = ezefranca.com.FCBBarCodeGeneratorTests; 410 | PRODUCT_NAME = "$(TARGET_NAME)"; 411 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 412 | SWIFT_VERSION = 3.0; 413 | TEST_HOST = "$(BUILT_PRODUCTS_DIR)/FCBBarCodeGenerator.app/FCBBarCodeGenerator"; 414 | }; 415 | name = Release; 416 | }; 417 | /* End XCBuildConfiguration section */ 418 | 419 | /* Begin XCConfigurationList section */ 420 | 31108BF01C8247FD00CFF948 /* Build configuration list for PBXProject "FCBBarCodeGenerator" */ = { 421 | isa = XCConfigurationList; 422 | buildConfigurations = ( 423 | 31108C051C8247FD00CFF948 /* Debug */, 424 | 31108C061C8247FD00CFF948 /* Release */, 425 | ); 426 | defaultConfigurationIsVisible = 0; 427 | defaultConfigurationName = Release; 428 | }; 429 | 31108C071C8247FD00CFF948 /* Build configuration list for PBXNativeTarget "FCBBarCodeGenerator" */ = { 430 | isa = XCConfigurationList; 431 | buildConfigurations = ( 432 | 31108C081C8247FD00CFF948 /* Debug */, 433 | 31108C091C8247FD00CFF948 /* Release */, 434 | ); 435 | defaultConfigurationIsVisible = 0; 436 | defaultConfigurationName = Release; 437 | }; 438 | B67033311E798BD000B48DA1 /* Build configuration list for PBXNativeTarget "FCBBarCodeGeneratorTests" */ = { 439 | isa = XCConfigurationList; 440 | buildConfigurations = ( 441 | B67033321E798BD000B48DA1 /* Debug */, 442 | B67033331E798BD000B48DA1 /* Release */, 443 | ); 444 | defaultConfigurationIsVisible = 0; 445 | defaultConfigurationName = Release; 446 | }; 447 | /* End XCConfigurationList section */ 448 | }; 449 | rootObject = 31108BED1C8247FD00CFF948 /* Project object */; 450 | } 451 | --------------------------------------------------------------------------------