What is the Xcode “Background Processing” Background Mode?

There is no documentation yet. But in WWDC2019, they explain what it is and how to use it. Here is the link: Apple WWDC 2019 Say like you wanted to clean up your database in background to delete old records. First, you have to enable background processing in your Background Modes Capabilities. Then in your … Read more

How can I preview a device in landscape mode in SwiftUI?

Xcode 13 Now you can preview in landscape mode with .previewInterfaceOrientation modifier to make it landscapeLeft or landscapeRight. ⚠️ The following image from WWDC21 uses horizontal and vertical that is NOT available in Xcode 13 beta! Old but not Useless method: You can set the size to any landscape size you want for PreviewProvider: struct … Read more

How to fix “IPA processing failed” error in xcode 11?

I faced same issue.I have fix this issue used this script. Please follow the same steps. Build Phases -> plus button -> to create New Run Script Phase APP_PATH=”${TARGET_BUILD_DIR}/${WRAPPER_NAME}” find “$APP_PATH” -name ‘*.framework’ -type d | while read -r FRAMEWORK do FRAMEWORK_EXECUTABLE_NAME=$(defaults read “$FRAMEWORK/Info.plist” CFBundleExecutable) FRAMEWORK_EXECUTABLE_PATH=”$FRAMEWORK/$FRAMEWORK_EXECUTABLE_NAME” echo “Executable is $FRAMEWORK_EXECUTABLE_PATH” echo $(lipo -info “$FRAMEWORK_EXECUTABLE_PATH”) FRAMEWORK_TMP_PATH=”$FRAMEWORK_EXECUTABLE_PATH-tmp” … Read more

How to read current app version in Xcode 11 with script

Xcode 11-14 In terminal or bash script in your project you can use: App version xcodebuild -showBuildSettings | grep MARKETING_VERSION | tr -d ‘MARKETING_VERSION =’ // will be displayed 1.1.6 Build version xcodebuild -showBuildSettings | grep CURRENT_PROJECT_VERSION | tr -d ‘CURRENT_PROJECT_VERSION =’ // will be displayed 7 Or (don’t forget to change YouProjectName to your … Read more

How to upload to App Store from command line with Xcode 11?

With Xcode 11 as command line tools, to validate or upload an ipa, replace altool with xcrun altool: xcrun altool –validate-app –file “$IPA_PATH” –username “$APP_STORE_USERNAME” –password @keychain:”Application Loader: $APP_STORE_USERNAME” xcrun altool –upload-app –file “$IPA_PATH” –username “$APP_STORE_USERNAME” –password @keychain:”Application Loader: $APP_STORE_USERNAME” Get more help with xcrun altool –help.

Why does my SwiftUI app crash when navigating backwards after placing a `NavigationLink` inside of a `navigationBarItems` in a `NavigationView`?

This was quite a pain point for me! I left it until most of my app was completed and I had the mind space to deal with the crashing. I think we can all agree that there’s some pretty awesome stuff with SwifUI but that the debugging can be difficult. In my opinion, I would … Read more

Cannot run application on simulator after installing Xcode 11 – CFBundleVersion error

There is a lot of misinformation in the answers here, so I wanted to provide an authoritative response. The issue here is that the new version of CoreSimulator.framework with Xcode 11 beta does validation on CFBundleVersion that previous versions did not do. These checks are valid, and it does represent an issue in your application, … Read more