ios - AWS Cognito Get Session does not confirm the user on success

So some weird stuff is happening when using the AWS Cognito SDK to attempt to authenticate users and log them in.Here is the login code.AWSCognitioIdentityUser* user = [mainPool getCurrentUser][[user getSession:finalAccountName password:_passwordField.text validationData:@[type]] continueWithExecutor:[AWSExecutor mainThreadExecutor] withBlock:^id _Nullable(AWSTask<AWSCognitoIdentityUserSession *> * _Nonnull initialTask) { [(UIButton*)sender setUserInteractionEnabled:TRUE]; [loader removeFromSuperview]; if(initialTask.error){ ...Read more

How do I resolve the linker error when I try to use CIFilter in my iOS (iPhone) app?

I get the following link error:Undefined symbols for architecture armv7: "_OBJC_CLASS_$_CIFilter", referenced from: objc-class-ref in CameraViewController.o "_OBJC_CLASS_$_CIImage", referenced from: objc-class-ref in CameraViewController.old: symbol(s) not found for architecture armv7clang: error: linker command failed with exit code 1 (use -v to see invocation)I already have included the QuartzCore.framework....Read more

objective c - File is universal (three slices), but it does not contain a(n) ARMv7-s slice error for static libraries on iOS, anyway to bypass?

I upgraded Xcode version and when using external static libraries, I get this message: ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /file/location for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation)Is there any way to bypass this and add support to the library if the developer of the library hasn't updated their library yet?...Read more

ios - Apple Mach-O Linker Error With Parse

I need some assistance. I added Parse SDK and it works fine during testing. When I attempt to build it, it gives me four 'Apple Mach-O Linker' errors: ld: warning: ignoring file /Users/Amirhosein/Downloads/ParsePlatform-PushTutorial-63133fb/iOS/Parse.framework/Parse, missing required architecture arm64 in file /Users/Amirhosein/Downloads/ParsePlatform-PushTutorial-63133fb/iOS/Parse.framework/Parse (3 slices) Undefined symbols for architecture arm64: "_OBJC_CLASS_$_PFPush", referenced from: objc-class-ref in AppDelegate.o "_OBJC_...Read more

ios - ld: warning: ignoring file

I am getting below warning ld: warning: ignoring file [path]/libMAKit.a, missing required architecture i386 in file Undefined symbols for architecture i386: "_OBJC_CLASS_$_MAViewController", referenced from: _OBJC_CLASS_$_AnalysisViewController in AnalysisViewController.o "_OBJC_CLASS_$_MAChartView", referenced from: objc-class-ref in AnalysisViewController.o "_OBJC_CLASS_$_MAKitTheme_WelterWeightDark", referenced from: objc-class-ref in AnalysisViewController.o "_OBJC_METACLASS_$_MAViewController", referenced from: ...Read more

ios - linker error for FBSDKShareDialog

I want to share some text and image on Facebook. For that I am using FBSDKShareDialog, but it's giving following linker error. I am using 4.5.1 version of facebook sdk. FBSDKShareDialog *dialog = [[FBSDKShareDialog alloc] init]; if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"fbauth2://"]]){ dialog.mode = FBSDKShareDialogModeNative; } else { dialog.mode = FBSDKShareDialogModeBrowser; //or FBSDKShareDialogModeAutomatic } //dialog.shareContent = content; dialog.delegate = self; dialog.f...Read more

ios - Updating Google AdMob SDK from 7.7.0 to 7.8.0 Undefined Symbols Error

I have updated my Google AdMob SDK from 7.7.0 to 7.8.0. After that I am getting this error: Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SFSafariViewController", referenced from: objc-class-ref in GoogleMobileAds(flat-x86_64) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)I have added all these frameworks:AdSupport,AudioToolbox,AVFoundation,CoreGraphics,CoreMedia,CoreTelephony,EventKit,EventKitUI,MediaPlayer,MessageUI,StoreKit,SystemConfigu...Read more

ios - Access parent class from subproject framework

I'm trying to split in modules a big XCode project. I have a main project and one submodule as an embedded framework.I need to import some classes from the main project into the subproject but no success.I added the subframework in the embedded binaries and in the Linked Frameworks of the parent's project target. Moreover I added in build settings "Header Search Path" in the parent project the path of the subframework.Any help would be appreciated...Read more

ios - Error when Trying to import external framework to Xcode 9

I´m working on an app that integrates MySpin system from bosch, and there is a framework available to be used in the process.I did all the importing process of the framework into my Xcode 9 project with a drag and drop into the frameworks project folder and linked to the target app.But I´m not able to use the header file from the framework in my project.I tried to import in some different ways, changing the options : Copy items if needed, Create Groups e Create folder references but the file dos not appear in the auto complete of importing proc...Read more

ios - Objective-C Frameworks Visibility of Classes

In my iOS App I have different Framework Targets (Kit, Data, Entity) with the following (intended) dependency graph:App -> KitData -> KitData -> EntityKit -> EntityIn the App Target configuration I do not link against Entity but it is still possible to import classes from Entity within a App class:#import <Entity/Entity.h>How can I prevent that I use Entity classes in my App Target?...Read more

ios - Missing App Store icon codename one build

I have created an app using codename one. It uploads to the google store for testing fine but when I try to upload it for TestFlight using the App Loader I get an error:"Missing App Store Icon. iOS Apps must include a 1024x1024px App Store Icon in PNG format. Without providing the icon in the Asset Catalog or via iTunes Connect, apps cannot be submitted for App Review or Beta App Review. Refer to https://developer.apple.com/ios/human-interface-guidelines/icons-and-images/app-icon/ for more information."I have already uploaded a couple of versio...Read more

objective c - Creating a user/developer defined login for AWS iOS using iOS SDK Cognito Lambda and DynamoDB

I am trying to figure out if this is the "proper"/current/correct flow for developing a user/developer defined login credential for iOS using AWS.(I am migrating from Parse to AWS so only been reading AWS for a week).Download, install, and build an iOS app for registering users (say email and password (this is done and the app shows a UITextField for email and password and accessible in the UIViewController)). Also iOS SDK via Cocoapods is installed and available.Create an identity pool with an unauth and auth roles that access the different se...Read more

ios - AWS Lambda/Cognito Authentication - Assuming Auth Role

I am attempting to create an iOS app in Swift that uses the following authentication service using AWS Lambda - https://github.com/danilop/LambdAuth It uses the AWS Mobile SDK for iOS to communicate with DynamoDB and Lambda - http://docs.aws.amazon.com/mobile/sdkforios/developerguide/Here is the sample code for the website that utilizes the token returned from the Lambda login function, I imagine the Swift code will be something similar - https://github.com/danilop/LambdAuth/blob/master/www/login.html#L69Here is the cloud function that generate...Read more