Posts

Post not yet marked as solved
0 Replies
1.4k Views
Hi, I built a project back in 2017 using swift and a module called SwiftSoup. Now, when I compile with new version Xcode I get error; No such module 'SwiftSoup' But only when compiling for simulator. It doesn't produce this error when I compile for actual device. How do I fix this issue so I can run app on simulator. I tried removing Derived Data folder, pod update, pod install and clean project; but nothing seems to work. Need help!
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
2 Replies
14k Views
I have app that is just for enterprise and supports ios7/ios8. I need to programmatically get device serial number. This id is visible to user and it uniquely identifies device. UUID will not work because it is not visible to user. Is there a way to programmatically get serial number of device? I would settle for IMEI too.
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
0 Replies
236 Views
hi,I am not getting crash logs from testflight in xcode organizer. Is there something special requiredto enable this?
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
1 Replies
948 Views
Hi, I want use ASWebAuthenticationSession to autofill login/password on a website. I tried some code but it doesn't work it always prompt me for password. First I goto webSITE from button click action and then get the permissions prompt;https://pasteboard.co/IvzRXGZ.pngThen, after clicking continue button, the website prompts me for password;https://pasteboard.co/IvzSJjs.pngI fill in my username and password.Now, next time I go to page it SHOULD autofill with the login and password I entered. Its asking for login and password instead!Here is code excerpt;#import "ViewController.h" #import <AuthenticationServices/AuthenticationServices.h> @interface ViewController () @property (strong) ASWebAuthenticationSession *session; @end @implementation ViewController @synthesize session; - (void)viewDidLoad { [super viewDidLoad]; } - (IBAction)loginBtnClicked:(id)sender { NSURL *destinationUrl = [NSURL URLWithString:@"https://site.name.edu"]; NSString *callbackUrlScheme = @"https://site.name.edu/Pages/main.aspx"; // I don't know what to put here!! session = [[ASWebAuthenticationSession alloc] initWithURL:destinationUrl callbackURLScheme:callbackUrlScheme completionHandler:^(NSURL * _Nullable callbackURL, NSError * _Nullable error) { if (error != nil && error.code == 1){ [self.session cancel]; // when 1 user wants to close Dialog? } else { printf("Error: %s", error.localizedDescription.UTF8String); } }]; BOOL started = [session start]; printf("Started? %s", started ? "TRUE":"FALSE"); } @endUnder Capabilities I turned on; Associated Domains — added “webcredentials:*.site.edu AutoFill Credential Provider Keychain Sharing — added “edu.name.AULoginTEstBut nothing ever gets saved. Can any one help me resolve this?Thanks!
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
0 Replies
616 Views
Hello,I have an app that views a web page. This web page requires login. So, I decided to use ASWebAuthenticationSession to autofill web page with credentials. Needless to say it is not working. Here is my code;#import "ViewController.h" #import @interface ViewController () @property (strong) ASWebAuthenticationSession *session; @end @implementation ViewController @synthesize session; - (void)viewDidLoad { [super viewDidLoad]; } - (IBAction)loginBtnClicked:(id)sender { NSURL *destinationUrl = [NSURL URLWithString:@"https://***.yyy.edu"]; NSString *callbackUrlScheme = @"https://***.yyy.edu/Pages/main.aspx"; session = [[ASWebAuthenticationSession alloc] initWithURL:destinationUrl callbackURLScheme:callbackUrlScheme completionHandler:^(NSURL * _Nullable callbackURL, NSError * _Nullable error) { if (error != nil && error.code == 1){ [self.session cancel]; } else { printf("Error: %s", error.localizedDescription.UTF8String); } }]; BOOL started = [session start]; printf("Started? %s", started ? "TRUE":"FALSE"); } @endIn Capibilities, I haveAssociated Domains: ON -- webcredentials:*.yyy.eduAutoFill Credential Provider: ONWhen the app is executed, it first prompts for permissions to access for shared data; see - https://pasteboard.co/IvCEiu5.png. Then web page prompts for login; see - https://pasteboard.co/IvCFa9v.png . At this point I thought autofill will start using login/password specified but it prompts everytime for login/password instead of autofilling. What am I doing wrong?[PS: My last post didn't take so posting again]
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
0 Replies
262 Views
I think i am missing something in my execution of SFSafariViewController. Autofill is not working. I don't even get prompted for passworrd. Here is how I invoke SFSafariViewController;let cfg = SFSafariViewController.Configuration.init() cfg.entersReaderIfAvailable = true cfg.barCollapsingEnabled = true let vc = SFSafariViewController(url: URL.init(string: uri)!, configuration: cfg) vc.dismissButtonStyle = .close vc.delegate = self; vc.preferredBarTintColor = Constants.MainThemeColor vc.preferredControlTintColor = .white self.present(vc, animated: true, completion: nil)However, there is no attempt to save or autofill by SFSafariViewController. Any idea what I could be doing wrong?Thanks!
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
0 Replies
330 Views
Hi,I'm looking for 3rd party HTTP/HTTPS library that is using Apple TCP framework and supports NTLM. The reason is because there is a bug in NSURLSession so I would like library that doesn't depend on it.The error I'm getting is;Assertion failed: (!_inResponseAssociatedRequest), function readResponse, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/CFNetwork/CFNetwork-978.0.7/HTTP/Core/IO/HTTPEngine.cpp, line 363.And although apple has verified its an error in their API, they can't fix it until I create an App that can reliably fail this way. So, it is easier to find a library that doesn't use NSURLSession/NSURLConnection for HTTP/HTTPS.Thanks in advance!
Posted
by eramsey1.
Last updated
.
Post not yet marked as solved
2 Replies
936 Views
I want to install Xcode 10.2 but I have rather large apps that depend on 10.1. If I install 10.2 will it clobber 10.1? Where can I find Xcode 10.1 dmg so I can install it along side 10.2?Thanks!
Posted
by eramsey1.
Last updated
.