You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when trying to build the project for Test target:
The code is:
extensionCGPoint:Decodable{
/// Decodes CGPoint from JSON array. Returns CGPoint.zero if array.count < 2.
///
/// - Parameter json: json element
/// - Returns: CGPoint converted from json
/// - Throws: error if type mismatch.
publicstaticfunc decode(_ json:Any)throws->CGPoint{letarray:[Double]=trycast(json)letpoint:CGPointif array.count <2{print("Can't parse point from array: \(array)")
point =CGPoint.zero
}else{
point =CGPoint(x:array[0], y:array[1])}return point
}}
Everything works fine with main target. Any ideas? Decodable is installed via CocoaPods, version 0.5.
podfile:
use_frameworks!# ignore all warnings from all podsinhibit_all_warnings!defpodspod'Masonry','0.6.4'pod'Decodable'pod'RealmSwift'endtarget'App'doplatform:ios,'9.0'podsendtarget'AppTests'doplatform:ios,'9.0'podsendpost_installdo |installer|
Dir.glob(installer.sandbox.target_support_files_root + "Pods-*/*.sh").eachdo |script|
flag_name=File.basename(script,".sh") + "-Installation-Flag"folder="${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"file=File.join(folder,flag_name)content=File.read(script)content.gsub!(/set -e/,"set -e\nKG_FILE=\"#{file}\"\nif [ -f \"$KG_FILE\" ]; then exit 0; fi\nmkdir -p \"#{folder}\"\ntouch \"$KG_FILE\"")File.write(script,content)endend
The text was updated successfully, but these errors were encountered:
I'm getting this error when trying to build the project for
Test
target:The code is:
Everything works fine with main target. Any ideas? Decodable is installed via CocoaPods, version 0.5.
podfile:
The text was updated successfully, but these errors were encountered: