Describe the bug
Compile error in AferoSwiftSDK/Core/AferoSofthub+Utils.swift on Line 367 and 483 in version 1.5.0.
Missing argument for parameter 'setupModeDeviceGoneHandler' in call
The function AferoSofthub.start(...) expects a new parameter setupModeDeviceGoneHandler: which is not used in the function Softhub.start(...).
To Reproduce
Steps to reproduce the behavior:
Update AferoSwiftSDK version in Podfile to 1.5.0
Execute pod install
Open .xcworkspace and build it
Expected behavior
No compile error in the AferoSwiftSDK.
Development Environment (please complete the following information):
OS: macOS 12.6
XCode Version 14.0
CocoaPods Version 1.11.3
Deployment Environment (please complete the following information)
Device: iPhone 11
OS: iOS 16
Workaround
Add post install hook to Podfile to ignore the source file.
post_install do |installer|
installer.pods_project.build_configurations.each do |config|
config.build_settings["EXCLUDED_SOURCE_FILE_NAMES"] = "**/AferoSwiftSDK/Core/AferoSofthub+Utils.swift"
end
end
Full Text of Podfile
source 'https://github.com/aferodeveloper/Podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.3'
use_frameworks!
workspace 'aferolab.xcworkspace'
# MARK: -
# MARK: Prerequisite definitions
XCODE_VERSION = (`xcodebuild -version`.scan /^Xcode\s+(\S+)$/)[0][0]
puts "Using Xcode version: #{XCODE_VERSION}"
def base_pods
pod 'AferoSwiftSDK', '~> 1.5'
pod 'AferoSwiftSDK/AFNetworking', '~> 1.5'
# Pods from original example project.
# Mostly dependencies already part of AferoSwiftSDK
#pod 'AFNetworking/NSURLSession', :inhibit_warnings => true
#pod 'CryptoSwift', '1.4.0'
#pod 'CocoaLumberjack/Swift', '3.5.2', :inhibit_warnings => true
#pod 'ReactiveSwift', '5.0.0', :inhibit_warnings => true
#pod 'PromiseKit/CorePromise', '4.5.1'
#pod 'HTTPStatusCodes', '~> 3.2'
pod 'SwiftyBeaver'
end
def test_pods
pod 'Quick', :inhibit_warnings => true
pod 'Nimble', :inhibit_warnings => true
pod 'OHHTTPStubs/Swift'
end
# MARK: - Subprojects -
# MARK: * AferoLab
target 'AferoLab' do
project 'AferoLab/AferoLab.xcodeproj'
base_pods
pod 'LKAlertController', '1.12.2'
pod 'SVProgressHUD', '~> 2'
pod 'QRCodeReader.swift', '~> 10'
# pod 'AferoSofthub', :path => '../../AferoSofthub'
end
target 'AferoLabTests' do
project 'AferoLab/AferoLab.xcodeproj'
inherit! :search_paths
end
target 'AferoLabUITests' do
project 'AferoLab/AferoLab.xcodeproj'
inherit! :search_paths
end
post_install do |installer|
end
Please use:
pod 'AferoSofthub', '1.8.0'
until AferoSwiftSDK support new features in AferoSofthub 1.8.2. No new bug fixes in that version. It should have really been versioned 1.9.0 instead.
Describe the bug Compile error in
AferoSwiftSDK/Core/AferoSofthub+Utils.swift
on Line 367 and 483 in version 1.5.0.The function
AferoSofthub.start(...)
expects a new parametersetupModeDeviceGoneHandler:
which is not used in the functionSofthub.start(...)
.To Reproduce Steps to reproduce the behavior:
Podfile
to 1.5.0pod install
.xcworkspace
and build itExpected behavior No compile error in the AferoSwiftSDK.
Development Environment (please complete the following information):
Deployment Environment (please complete the following information)
Workaround Add post install hook to Podfile to ignore the source file.
Full Text of Podfile
Full Text of Podfile.lock