Can’t endBackgroundTask: no background task exists with identifier, or it may have already been ended

I lose many days looking for the piece of code or framework that was causing this warning in the debug console Can’t end BackgroundTask: no background task exists with identifier 2 (0x2), or it may have already been ended. Break in UIApplicationEndBackgroundTaskError() to debug. Finally I’ve created an empty project Single View App. Only code … Read more

Xcode 5 – Required plug-in not present in DVTPlugInCompatibilityUUIDs?

I modified a shell commands I found here to fix this for all my plugins. To fix this issue: XCODEUUID=`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID` for f in ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/*; do defaults write “$f/Contents/Info” DVTPlugInCompatibilityUUIDs -array-add $XCODEUUID; done

Delete provisioning profile from Xcode 5

If you delete the profile from the Apple development a/c and hit refresh in XCode (Using xcode>Preferences>Accounts) then these profiles will be gone. You can remove them from the this directory on your machine: “~/Library/MobileDevice/Provisioning\ Profiles”

iOS7 UISwitch its Event ValueChanged: Calling continuously is this Bug or what..?

Please see the following code: -(void)viewDidLoad { [super viewDidLoad]; UISwitch *mySwitch = [[UISwitch alloc] initWithFrame:CGRectMake(130, 235, 0, 0)]; [mySwitch addTarget:self action:@selector(changeSwitch:) forControlEvents:UIControlEventValueChanged]; [self.view addSubview:mySwitch]; } – (void)changeSwitch:(id)sender{ if([sender isOn]){ NSLog(@”Switch is ON”); } else{ NSLog(@”Switch is OFF”); } }

Multiple cursors / highlight next instance of currently highlighted word

It is possible starting from Xcode 10 Beta 3 You can add selections for the next and previous find results using the “Find and Select Next” and “Find and Select Previous” menu commands. Additionally, you can quickly add selections for the next and previous occurrences of the current selected text using the “Select Next Occurrence” … Read more

Xcode 5 – “iOS Simulator failed to install application” every time I switch simulators

Looks like this is a known issue. From the Xcode 5 release notes: After switching the minimum deployment target of an application from iOS 7.0 to a release prior to iOS 7.0, building and running the application may fail with the message “iOS Simulator failed to install the application.” Go to the iOS home screen, … Read more

Xcode 5 & Asset Catalog: How to reference the LaunchImage?

This is the (almost) complete list of the LaunchImage (excluding the iPad images with no status bar): LaunchImage-568h@2x.png LaunchImage-700-568h@2x.png LaunchImage-700-Landscape@2x~ipad.png LaunchImage-700-Landscape~ipad.png LaunchImage-700-Portrait@2x~ipad.png LaunchImage-700-Portrait~ipad.png LaunchImage-700@2x.png LaunchImage-Landscape@2x~ipad.png LaunchImage-Landscape~ipad.png LaunchImage-Portrait@2x~ipad.png LaunchImage-Portrait~ipad.png LaunchImage.png LaunchImage@2x.png LaunchImage-800-667h@2x.png (iPhone 6) LaunchImage-800-Portrait-736h@3x.png (iPhone 6 Plus Portrait) LaunchImage-800-Landscape-736h@3x.png (iPhone 6 Plus Landscape) LaunchImage-1100-Portrait-2436h@3x.png (iPhone X Portrait) LaunchImage-1100-Landscape-2436h@3x.png (iPhone X Landscape)

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)