Browsed by
Tag: ios

ERROR ITMS-90717: “Invalid App Store Icon. The App Store Icon in the asset catalog in ‘CoinAtmFinder.app’ can’t be transparent nor contain an alpha channel.”

ERROR ITMS-90717: “Invalid App Store Icon. The App Store Icon in the asset catalog in ‘CoinAtmFinder.app’ can’t be transparent nor contain an alpha channel.”

It may be causes for 2 reasons – If image is transparent or if alpha channel  .   Solution for transparent :  Simply remove transparent or convert .png image to .jpg/.jpeg format . Solution for alpha channel :   Copy and Paste the App Store icon to the desktop. Open the image. Click File Menu->Duplicate. Save it by unticking the Alpha channel. Replace the current App Store icon with this one. Validate and upload. Source : https://stackoverflow.com/questions/46585809/error-itms-90717-invalid-app-store-icon

unable to boot device due to insufficient system resources. xcode

unable to boot device due to insufficient system resources. xcode

Problem : unable to boot device due to insufficient system resources. xcode Please see Simulator Help for information on adjusting system settings to allow more simulated devices to boot at once. maxUserProcs: 709, runningUserProcs: 614, enforcedProcBuffer: 144 Solution : Open Terminal and run the command sudo launchctl limit maxproc 2000 2500  Explanation : xCode restricts to run more device but it has 2000 max device run capability. sudo launchctl limit maxproc [limit for one user] [total limit]

IOS – Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] PID: 902, TID: 13120, Thread name: (none), Queue name: NSOperationQueue 0x604000037a20 (QOS: UNSPECIFIED), QoS: 0 Backtrace:

IOS – Main Thread Checker: UI API called on a background thread: -[UIApplication delegate] PID: 902, TID: 13120, Thread name: (none), Queue name: NSOperationQueue 0x604000037a20 (QOS: UNSPECIFIED), QoS: 0 Backtrace:

Solution : use DispatchQueue.main.async { // Correct }     Updating UI from a Completion Handler Long-running tasks such as networking are often executed in the background, and provide a completion handler to signal completion. Attempting to read or update the UI from a completion handler may cause problems. let task = URLSession.shared.dataTask(with: url) { (data, response, error) in if let data = data { self.label.text = “\(data.count) bytes downloaded” // Error: label updated on background thread } } task.resume()…

Read More Read More

PhoneGap or Cordova iOS build and import to Xcode

PhoneGap or Cordova iOS build and import to Xcode

Open Terminal and go to project folder like cd: Desktop/newProject run the command on terminal cordova platform add ios  and run the command cordova build  It will create  a platform folder in the project directory and inside project directory you will find iOS . import iOS on xCode and build as same as other xCode project .    

How to uninstall cocoapod completely and install new

How to uninstall cocoapod completely and install new

1. Uninstall CocoaPods (choose to uninstall all versions): 1 sudo gem uninstall cocoapods 2. Remove old master repo: 1 sudo rm -fr ~/.cocoapods/repos/master 3. Install CocoaPods with sudo: 1 sudo gem install cocoapods 4. Setup CocoaPods and Master repo: 1 pod setup Source i collected 

Swift 3 / 4 get current location with location manager .

Swift 3 / 4 get current location with location manager .

Step – 1 :  First define LocationManager . And Current location of CLLocaion .   var manager = CLLocationManager() var currentLocation: CLLocation! Step 2 : In ViewDidController get Current location with location manager . That’s it .   manager.requestWhenInUseAuthorization()                  if (CLLocationManager.authorizationStatus() == CLAuthorizationStatus.authorizedWhenInUse ||             CLLocationManager.authorizationStatus() == CLAuthorizationStatus.authorizedAlways){             currentLocation = manager.location             print(“location is “, currentLocation.coordinate.latitude)…

Read More Read More

Swift 3 /4 take photo from camera or gallery and show it .

Swift 3 /4 take photo from camera or gallery and show it .

Step One : First create a project and take imageView and a button to capture image . Connect it to ViewController . Step Two : Copy this code and run . hope it will be done . 😀    class ImageCapture: UIViewController , UIImagePickerControllerDelegate,UIPopoverControllerDelegate,UINavigationControllerDelegate{      @IBOutlet var imageViewWeight: UIImageView!      var imagePicker:UIImagePickerController?=UIImagePickerController() override func viewDidLoad() {         super.viewDidLoad()          imagePicker?.delegate=self     }      @IBAction func takeImage(_ sender: Any) {       var alert…

Read More Read More

Swift Tutorial Series In Bangla : Collection Type – Array

Swift Tutorial Series In Bangla : Collection Type – Array

Source Code import UIKit var integerTypeArray = [Int]() integerTypeArray.append(3) integerTypeArray.append(5) var stringTypeArray = [String]() stringTypeArray.append(“ios”) var threeWillbeTenTimesArray = Array(repeatElement(“Three”, count: 10)) var fiveWillbeTenTimesArray = Array(repeatElement(“Five”, count: 10)) var addThreeAndFiveArray = threeWillbeTenTimesArray + fiveWillbeTenTimesArray var literalTypeArray : [String] = [“swift”,”version”,”three”] literalTypeArray[0] for eachElementValue in literalTypeArray { print(eachElementValue) } var countofArray = literalTypeArray.count var retriveLastElement = literalTypeArray[literalTypeArray.count-1]     Download From Github