Posts

Post marked as unsolved
31 Views

Swift package manager

I am getting an error message (mixed language) while adding the Swift package dependency. Source code mostly contains Swift language and a little bit of Objective-C. Can't we mix Swift and Objective-C language? If so, what is the workaround
Asked
Last updated .
Post marked as unsolved
37 Views

Swift package manager

I have an Xcode project that generates xyz.framework and that framework is used by other teams for their app. Updating the framework is a manual process. So I am planning to covert my xyz.framwork source to swift package manager. I couldn't find any such articles. Please let me know if there is any resource around this topic.
Asked
Last updated .
Post marked as unsolved
104 Views

UIView intersect

Is there a way to identify whether UIView hides/overlaps another UIView by checking points/pixels?
Asked
Last updated .
Post marked as unsolved
63 Views

Learning Swift my comparing Objective-C

Is there any tutorial to learn Swift by comparing Objective-C. Tutorial should contain both Objective-C and Swift code.
Asked
Last updated .
Post marked as unsolved
118 Views

New privacy policy

 My question about the new privacy policy -> https://developer.apple.com/app-store/app-privacy-details/   My mobile app collects app location and customer email address and pass those information to the back end for the process. Since I don’t use those data for tracking purpose , I wanted to know whether I need to disclose those datatypes under privacy section or can be skipped if it's optional.
Asked
Last updated .
Post marked as unsolved
544 Views

Excluding few frameworks while extracting IPA

Hi,I have an Xcode project with multiple targets. I added a few custom frameworks to all the targets which increase the IPA file size. Actually, a few targets don't need to have these custom framework.I know we can exclude these frameworks by removing them from "Build Phases->Link Binaries With Libraries" for the particular target, but I am exploring to see whether these can be achieved by having a script so that we don't have to remove/add them manually whenever required.I have a custom plist file for each target which tells whether these frameworks are needed. Is there any command available to remove/strip the framework from the target while building the app so that I can write a script by referring the plist value.
Asked
Last updated .
Post marked as unsolved
586 Views

Editing Bundle ID via commandline

I have two account, one developer account and one developer enterprise account. I believe that Apple wont allow to register same bundle id in two different accounts. So we have to slighty modify the bundle identifier if we want to distribute via enterprise account. Is there a way to change the bundle identifier via command line like xcodebuild so that we can change while building the app which will be a part of our continous integration.
Asked
Last updated .
Post marked as unsolved
274 Views

what is the best way to wait until an object is removed from array

I have declared an mutablearray and the count should not exceed 100. If some one calls addObject method to add an item to that array when the count is 100 then that method call should not be executed until someone removes an item so that count will go down below 100. Can we use semaphore or group dispatch for signalling or mutex/NSLock is recommended.- (void)viewDidLoad { [super viewDidLoad]; self.array = [[NSMutableArray alloc] initWithCapacity:100]; semaphore = dispatch_semaphore_create(0); [self addObject:@1]; [self addObject:@2]; [self addObject:@3]; [self addObject:@4]; . . . [self addObject:@100]; [self addObject:@101]; [self removeObjectAtIndex:1];}- (void)addObject:(id)object{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self.array addObject:object]; if([self.array count] == 100){ dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER); } });}- (void)removeObjectAtIndex:(NSInteger)index{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ [self.array removeObjectAtIndex:index]; if([self.array count]<100){ dispatch_semaphore_signal(semaphore); } });}
Asked
Last updated .
Post marked as unsolved
244 Views

AVPlayer full screen

I implemented AVPlayerViewControllerDelegate to know when the Player enters or exits full screen mode. This delegate got introduced in iOS 12 and it works fine with iOS 12 and iOS 13.I added two workarounds for older versions.#1: Check whether viewcontroller is presenting any controller in viewWillLayOutSubViews#2: Check the AVPlayer overlay view frame in viewWillLayOutSubVies/viewDidLayOutSubViews.Those two workaround works fine in some versions but not in all the OS versions prior to 12.Did anyone have any solution to handle this issue?
Asked
Last updated .
Post marked as unsolved
655 Views

June 30 new appstore requirement

I got an email from Appstore saying starting June 30 all the apps must be built with iOS 13 and launch storyboard must be used. Is this applicable only for app updates or existing apps will be removed from Store if developer don't update the app.
Asked
Last updated .
Post marked as unsolved
113 Views

openURL

I will have to call openURL method twice which is not possible. Here is the scenarioI have to open the web page in safari from native app and at the same time I have to append some base 64 string to another http url and will have to call that URL to update the web page with the appended base 64 response.If we can call openURL twice then It would be easy and simple but unfortunately we can't call openURL twice back to back.Please let me know if there is any other solution available
Asked
Last updated .
Post marked as unsolved
184 Views

New guidelines starting April 2020

As per WWDC 2019, app should support/have following features in order to submit the app to Appstore starting April 2020.Launch Storyboards.Support any size.Support Split Screen Multitasking(iPad)Is this still true? I didn't receive any email from developer support regarding this. If its true, will Apple remove the app from appstore app doesn't support above features?
Asked
Last updated .
Post marked as unsolved
284 Views

Universal link from chrome/opera

referral url parameter is nil if universal link is from 3rd party browser like chrome/opera. How to detect the browser app and its URL scheme used for universal link?
Asked
Last updated .
Post marked as unsolved
178 Views

applicationDidBecomeActive

Is there a way to know the source(native app, universal link, webapp) which invokes the app running background?
Asked
Last updated .
Post marked as unsolved
364 Views

Custom URL names

Is there any restrictions on Custom URL scheme names? URL scheme name "httpabc" works but "http:abc" doesn't work. So wanted to know the restrictions imposed by Apple as I couldn't find relavent document in developer portal?
Asked
Last updated .