wengcan
wengcan

Reputation: 31

linker command failed when archive

I want to archive a React Native project user the latest Xcode and always failed because linker command failed.

When I run xcodebuild -verbose & Ld command, then the error is like this

ld: file not found: build/xxxxx_app.build/Release-iphoneos/xxxxx_app.build/Objects-normal/armv7/xxxxx_app`

Error screenshot

I had tried the bellow steps, but still the same error appears

Some configuration

Linked Frameworks and Libraries

So what is the right way to archive ios project?

Upvotes: 2

Views: 631

Answers (3)

Fattie
Fattie

Reputation: 12647

In some cases the magical fix

Build settings, Enable Bitcode -> NO

Upvotes: 0

Midhun
Midhun

Reputation: 2187

please remove all derived data step1: cmd + option + shift + k step2: cmd + shift + k step3: restart xcode

Upvotes: 0

NIranjan Gajipara
NIranjan Gajipara

Reputation: 21

try this, go to Target -> Build Settings,then search these three as following,

GCC_NO_COMMON_BLOCKS,

CLANG_WARN_INFINITE_RECURSION,

CLANG_WARN_SUSPICIOUS_MOVE,

set NO to each value then clean and build.

Upvotes: 1

Related Questions