Xcode - Error creating LLDB target
Asked Answered
P

7

74

I'm getting this error whenever I build in XCode 6 beta 4. It seems to be making my app insanely slow.

Warning: Error creating LLDB target at path '/***/***/***/***.app'- using an empty LLDB target which can cause slow memory reads from remote devices.

What exactly does this mean and how do I fix it?
Thanks in advance!

Pforzheim answered 1/8, 2014 at 20:35 Comment(2)
I am getting this issue too. It is making my app unresponsiveDistinguish
The top answer for this helped me: #25761947Benedick
A
63

Did you use Architectures=$(ARCHS_STANDARD_32_BIT) and run your app on a 64 bit device? (iPhone 5S or iPhone 5S simulator)

Apple seems to be stricter with apps which don't support 64bit. So if there is no specific reason, I think it's better to include arm64 in your build architecture

NOTE ABOUT 64-BIT ARCHITECTURE

An app extension target must include the arm64 architecture in its Architectures build settings or it will be rejected by the App Store. Xcode includes this architecture with its “Standard architectures” setting when you create a new app extension target.

If your containing app target links to an embedded framework, the app must also include the arm64 architecture or it will be rejected by the App Store.

For more information about 64-bit development, see 64-Bit Transition Guide for Cocoa Touch or 64-Bit Transition Guide for Cocoa, depending on your target platform.

Source: https://developer.apple.com/library/archive/documentation/General/Conceptual/ExtensibilityPG/ExtensionCreation.html

Almemar answered 28/8, 2014 at 9:52 Comment(4)
In particular I think the issue is that you need to support the native architecture of the device you're targeting.Sudatory
ok to be fair that documentation is about app EXTENSIONS and not apps.Violetavioletta
for me the issue was in the 2nd paragraph. I have many nested projects in my main project, some of which were not including arm64Incisor
You also have to include it in 'Valid Architectures' build setting.Kinakinabalu
A
9

This warning is solved by changing Build Settings :

  1. Select Project -> Build Settings
  2. Change 'Architectures' to 'Standard architectures (armv7, arm64) - $(ARCHS_STANDARD)' Step 2

  3. This will prompt an alert stating iOS 5.1.1 and above are supported. Click 'Change Deployment Target to 5.1.1'

Step 3

  1. Repeat steps for Target (if not changed automatically)

Step 4

Also, this is preferred build setting since Apple is forcing developers to build apps on 64 but architecture. Apple document Link

Alkalimeter answered 23/12, 2014 at 9:21 Comment(0)
E
4

Double Check Build Settings => Valid Architectures for both Project and Target.

Mine used to say: arm64 armv7 i386 (The one causing the error was i386)

I replaced it to : arm64 armv7

I hope that helps.

Edee answered 7/10, 2014 at 17:37 Comment(2)
Hey @Edee why you replaced with arm64 armv7 arm64?Munda
@Edee you have arm64 twice on your list.Oligoclase
Y
1

In my case I had to change Build Active Architecture Only (ONLY_ACTIVE_ARCH) to YES for the Debug configuration.

Yearwood answered 23/7, 2020 at 18:47 Comment(0)
F
0

In Xcode 6.4 , Swift 1.2. I had to edit both the Project and Target to the correct arm verisons (arm64, armv7 and armv7s). Take a look:

enter image description here

Freelance answered 30/9, 2015 at 14:25 Comment(0)
A
0

My "Architectures" included arm64 but I had to add arm64 to "Valid Architectures" in the target.

Anta answered 16/10, 2015 at 14:58 Comment(1)
Damm, now I have a zillion "Conversion loses precision" warnings.Anta
M
0

Use file to check the archicture of the build executable. The build folder can be located with the Product > Show Build Folder in Finder menu.

pwd
# …path/to/Build
cd Products/Debug-iphonesimulator/ExampleName.app

file ExampleName
# Mach-O 64-bit executable x86_64

### x86_64 can raise the empty LLDB target error when debugging
### iOS in the Simulator on an Apple Silicon computer.

The following settings resolved the …using an empty LLDB target… error for Xcode 15.2 and the associated iPhone Simulator:

.xcodeproj Settings

Title Name Debug Release
Architectures ARCHS default: $(ARCHS_STANDARD) default: $(ARCHS_STANDARD)
Excluded Architectures EXCLUDED_ARCHS unset unset
Build Active Architectures Only ONLY_ACTIVE_ARCH Yes default: No

CocoaPods Podfile

### other: `ONLY_ACTIVE_ARCH` = YES only for `*Debug*` configurations
if config.name.include?("Debug")
    config.build_settings["ONLY_ACTIVE_ARCH"] = "NO"
end

debug.xcconfig

As FYI, the ONLY_ACTIVE_ARCH setting can be added to *.xcconfig files for both implementation and documentation purposes.

// Resolve "Error creating LLDB target … using an empty LLDB target…"
ONLY_ACTIVE_ARCH = YES
Milurd answered 3/3 at 20:40 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.