Skip to content

Commit bd68ea5

Browse files
committed
Fix demo
1 parent 73412c7 commit bd68ea5

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Example/BarcodeScannerExample/BarcodeScannerExample.xcodeproj/project.pbxproj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@
278278
D50BE4051C9FE8870000A34C /* Debug */ = {
279279
isa = XCBuildConfiguration;
280280
buildSettings = {
281+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
281282
ALWAYS_SEARCH_USER_PATHS = NO;
282283
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
283284
CLANG_CXX_LIBRARY = "libc++";
@@ -325,6 +326,7 @@
325326
D50BE4061C9FE8870000A34C /* Release */ = {
326327
isa = XCBuildConfiguration;
327328
buildSettings = {
329+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
328330
ALWAYS_SEARCH_USER_PATHS = NO;
329331
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
330332
CLANG_CXX_LIBRARY = "libc++";
@@ -367,7 +369,7 @@
367369
isa = XCBuildConfiguration;
368370
baseConfigurationReference = 560D7A8F00215E8F16A67009 /* Pods-BarcodeScannerExample.debug.xcconfig */;
369371
buildSettings = {
370-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
372+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
371373
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
372374
CODE_SIGN_IDENTITY = "iPhone Developer";
373375
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
@@ -384,7 +386,7 @@
384386
isa = XCBuildConfiguration;
385387
baseConfigurationReference = B2BB8B30EF0245DC64F4025A /* Pods-BarcodeScannerExample.release.xcconfig */;
386388
buildSettings = {
387-
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
389+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = "$(inherited)";
388390
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
389391
CODE_SIGN_IDENTITY = "iPhone Developer";
390392
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";

Example/BarcodeScannerExample/BarcodeScannerExample/ViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ViewController: UIViewController {
4040

4141
extension ViewController: BarcodeScannerCodeDelegate {
4242

43-
func barcodeScanner(_ controller: BarcodeScannerController, didCapturedCode code: String, type: String) {
43+
func barcodeScanner(_ controller: BarcodeScannerController, didCaptureCode code: String, type: String) {
4444
print(code)
4545
print(type)
4646

Sources/BarcodeScannerController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ open class BarcodeScannerController: UIViewController {
278278

279279
- Parameter errorMessage: Error message that overrides the message from the config.
280280
*/
281-
public func reset(errorMessage: String? = nil) {
281+
public func resetWithError(errorMessage: String? = nil) {
282282
status = Status(state: .notFound, text: errorMessage)
283283
}
284284

0 commit comments

Comments
 (0)