Xcode

Build, test, and submit your app using Xcode, Apple's integrated development environment.

Xcode Documentation

Posts under Xcode tag

2,603 results found
Post marked as unsolved
37 Views

Remove Navigation Controller behavior from one View

This is my structure of my project: >TabBarController->NavController->A1->A2->A3->A4 From the TabBarController are similar to this structure several other NavController. I want A4 to behave like there were no Nav Controller in this project. There should not be a back Button or TabBar. Like the Project were structured like this: >B1->B2 Is this possible?
Asked
Last updated .
Post marked as unsolved
357 Views

Export for Localization, How to include Root.strings in Settings bundle to XLIFF

In Xcode the menu item Editor -> Export for Localization that generates the XLIFF file for the localized files in the project does not include the localized file in the Settings bundle. For example consider the following localized files in the project:Settings.bundle en.lproj Root.strings es.419.lproj Root.strings...Resources InfoPlist.strings InfoPlist.strings (Base) IntoPlist.strings (Spanish (Latin America)) Localizable.strings Localizable.strings (Base) Localizable.strings (Spanish (Latin America))When I use the menu item "Editor -> Export for Localization" the generated XLIFF file contains InfoPlist.strings & Localizable.strings. However, it does not include Root.strings from the Settings bundle. Is there a way to include Root.strings in the generated XLIFF file so that it is also part of the same translation process?
Asked
by deme .
Last updated .
Post marked as unsolved
98 Views

Xcode 12.0.1 "No such module"

After updating to Xcode 12.0.1 I can't build my projects anymore. Each time I do I get "No such module..." for each Pod. I haven't made any other changes to the project. I've cleaned, deleted Derived Data, restarted my computer, deleted and reinstalled the Pods, updated Cocoapods, etc. Has anyone else had this issue?
Asked
by rossross.
Last updated .
Post marked as unsolved
141 Views

Unity iOS project fails Xcode validation with "Invalid Bundle. The bundle at '[app]/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks'."

I've tried this on various versions of Unity 2019.x and Xcode 11.6 Develop Unity project Build project for iOS Open Xcode for the project Archive Xcode project Validate archive -> Fails with "Invalid Bundle. The bundle at '[app]/Frameworks/UnityFramework.framework' contains disallowed file 'Frameworks' There are solutions posted online about allowing/disallowing embedded Swift code. TO BE CLEAR, THIS PROJECT DOES NOT USE SWIFT CODE. Where can I start with researching this issue?
Asked
by Thompson.
Last updated .
Post marked as unsolved
78 Views

Disable TextFields Then Enable Them

is there a way to type into a textField while having the other textFields disabled but then after you type into that textField having those other textFields you disabled enabled again? I know how to disable them with .isUserInteractionEnabled but I don't know how to enable them again with func textFieldShouldReturn.
Asked
by ZoneX.
Last updated .
Post marked as unsolved
4 Views

XCode, M1, no Rosetta

Hi there, Is there a way to keep Mac mini with M1 clean from Rosetta 2 and use it for iOS development? Why Xcode force me to install Rosetta2? it shouldn't be required. I want to have only native apps there and no Rosetta2. Thanks, Lubor
Asked
by rizoto.
Last updated .
Post marked as unsolved
18 Views

Xcode12.2 is Crash

1:click perfrence->behaviors or Account = crash 2:click Project->scheme->manager scheme = crash 3:click Device and Simulator -> unpair device = crash
Asked
Last updated .
Post marked as unsolved
74 Views

Unable to install App - Error Unknown

Hello all, since the latest xcode (12) and iOS (14) update I'm not able to install my app on a physical device. The error I get is 'Unable to install "Qvadis"' and this log: Unable to install "Qvadis" Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620415- An unknown error has occurred. Domain: com.apple.dt.MobileDeviceErrorDomain Code: -402620415 User Info: {   DVTRadarComponentKey = 280331;   MobileDeviceErrorCode = "(0xE8008001)";   "com.apple.dtdevicekit.stacktrace" = ( 0  DTDeviceKitBase           0x000000011d9fe93f DTDKCreateNSErrorFromAMDErrorCode + 220 1  DTDeviceKitBase           0x000000011da3d124 __90-[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:]_block_invoke + 155 2  DVTFoundation            0x000000010216fb43 DVTInvokeWithStrongOwnership + 71 3  DTDeviceKitBase           0x000000011da3ce65 -[DTDKMobileDeviceToken installApplicationBundleAtPath:withOptions:andError:withCallback:] + 1440 4  IDEiOSSupportCore          0x000000011d8add28 __118-[DVTiOSDevice(DVTiPhoneApplicationInstallation) processAppInstallSet:appUninstallSet:installOptions:completionBlock:]_block_invoke.292 + 3513 5  DVTFoundation            0x000000010229e2aa DVT_CALLING_CLIENT_BLOCK + 7 6  DVTFoundation            0x000000010229fecc __DVTDispatchAsync_block_invoke + 1191 7  libdispatch.dylib          0x00007fff698226c4 _dispatch_call_block_and_release + 12 8  libdispatch.dylib          0x00007fff69823658 _dispatch_client_callout + 8 9  libdispatch.dylib          0x00007fff69828c44 _dispatch_lane_serial_drain + 597 10 libdispatch.dylib          0x00007fff698295d6 _dispatch_lane_invoke + 363 11 libdispatch.dylib          0x00007fff69832c09 _dispatch_workloop_worker_thread + 596 12 libsystem_pthread.dylib       0x00007fff69a7da3d _pthread_wqthread + 290 13 libsystem_pthread.dylib       0x00007fff69a7cb77 start_wqthread + 15 ); }- System Information macOS Version 10.15.6 (Build 19G2021) Xcode 12.0.1 (17220) I hope you can help me here, thank you.
Asked
by alsanbar.
Last updated .
Post marked as unsolved
27 Views

testmanagerd crashing intermittently in CI builds via Jenkins & Fastlane. Why?

Our fastlane Xcode builds are failing intermittently when run by Jenkins. About 10% of builds, while running test targets, we'll get a failure with: [2020-11-16T16:12:10.276Z] 2020-11-16 08:11:47.435 xcodebuild[72478:2549553] [MT] IDETestOperationsObserverDebug: 415.317 elapsed -- Testing started completed. [2020-11-16T16:12:10.276Z] 2020-11-16 08:11:47.435 xcodebuild[72478:2549553] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start [2020-11-16T16:12:10.276Z] 2020-11-16 08:11:47.435 xcodebuild[72478:2549553] [MT] IDETestOperationsObserverDebug: 415.317 sec, +415.317 sec -- end [2020-11-16T16:12:10.276Z] Testing failed: [2020-11-16T16:12:10.276Z] REDACTED_iPhoneTests: [2020-11-16T16:12:10.276Z] REDACTED.app encountered an error (Failed to install or launch the test runner. If you believe this error represents a bug, please attach the result bundle at /tmp/build/jenkins-mobile-ios-develop-1107/ios/fastlane/output/derivedData/Logs/Test/Test-iPhoneSnapshotTests-2020.11.16_08-04-51--0800.xcresult. (Underlying Error: The request to open "com.REDACTED.REDACTEDapp" failed. The request was denied by service delegate (SBMainWorkspace) for reason: Busy ("Application cannot be launched because it has outstanding termination assertions"). (Underlying Error: The operation couldn’t be completed. Application cannot be launched because it has outstanding termination assertions.))) In the simulator device logs we have a lot of "failed to bootstrap path" errors, where the report indicates that some path under Xcode-12.app cannot be found (even though in reality, it's there): Failed to bootstrap path: path = /Applications/Xcode-12.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim, error = 2: No such file or directory Nov 16 08:11:44 Mac-169 com.apple.CoreSimulator.SimDevice.4A33E878-D3F6-4EE4-AB53-7ACD59E0B8A5[73117] (com.apple.xpc.launchd.domain.pid.testmanagerd.73149): Failed to bootstrap path: path = /Applications/Xcode-12.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit, error = 2: No such file or directory Nov 16 08:11:44 Mac-169 com.apple.CoreSimulator.SimDevice.4A33E878-D3F6-4EE4-AB53-7ACD59E0B8A5[73117] (com.apple.xpc.launchd.domain.pid.LogArchiveCollector.73942): Failed to bootstrap path: path = /Applications/Xcode-12.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/dyld_sim, error = 2: No such file or directory Nov 16 08:11:44 Mac-169 com.apple.CoreSimulator.SimDevice.4A33E878-D3F6-4EE4-AB53-7ACD59E0B8A5[73117] (com.apple.xpc.launchd.domain.pid.LogArchiveCollector.73942): Failed to bootstrap path: path = /Applications/Xcode-12.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit, error = 2: No such file or directory
Asked
by O_G.
Last updated .
Post marked as unsolved
27 Views

Cannot symbolicate on Instruments

Hello, we're trying to symbolicate the binary on instruments and it is not doing anything. We've tested on two different macs using XCode 12.2, ios 14.2 and unreal 4.25.4. On the symbols window, it shows the app name with a green checkmark. We select the .app and the .dsym and when we click done, nothing happens. If we just choose the .app, click done and open again, the window show the same old information, it seems nothing is changing. Opening the console we see multiple lines of: Resymbolication: failed to copy kernel symbolicator Resymbolication: failed to copy user symbolicator for pid -1 Can someone give us a hint or what we may be doing wrong or what can we do to solve this?
Asked
Last updated .
Post marked as unsolved
135 Views

Instruments 12.0.1 symbols for system libraries unavailable in simulator

Since moving to Xcode/Instruments 12.0.1 from 11.7 I'm having issues when attempting to profile an iOS app (specifically with the Leaks instrument). Attempting to run in any iOS14 simulator, I get a warning in the top bar: Symbols for system libraries are unavailable for <insert your simulator here> If I try running on a simulator earlier than iOS14 I get the same message, and runtime failures: (Before Run Started) Symbols for system libraries are unavailable for 'iPad (6th generation) (12.1)' Recovery Suggestion: Debugging on this device from Xcode.app will download system symbols for use by Instruments and lldb <timestamp> An error occurred trying to capture Leaks data. Error retrieving leak information. The code is compiled with debug (DWARF with dSYM file) and has been run in debug mode on the simulator. All of this worked happily under Xcode/Instruments 11.7. Any ideas?
Asked
by synopsis.
Last updated .