Duplicate symbol (s) for architecture (s) [arm7, arm64]

I imported a new version of the framework into my SDK. Anyway, I can’t build on iPhone 6 running iOS 9.0.1 due to the following error, which drives me crazy:

duplicate symbol _IPDJobStatus in:
/Users/akiki/Desktop/iOS 9 Test/MPSDK/iPD.framework/iPD(IPDDevice.o)
/Users/akiki/Desktop/iOS 9 Test/MPSDK/iPD.framework/iPD(IPDAdministration.o)
ld: 5 duplicate symbols for architecture arm7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This happens when the same character _IPDJobStatusis found twice in 5 files. The same thing happens on iPhone 4S with iOS 9.1 with arm64 architecture. In order to import the framework, I deleted the old project from the project, imported a new one and checked in the section “Linking binary files to the library” the links to the framework links with the correct updated file. Before the request, I tried to do the following:

  • I was looking for a duplicate character inside the project area with no result.
  • I do not import the file by .maccident.
  • Compile Sources project options for build projects do not include a duplicate file.
  • Links to frame headers in the settings headers of the Construction Phases project link to the corresponding files.
  • I tried to clear the project, free the Derived Data folder, exit and restart Xcode.
  • I added the linker flag -ObjC(in this case, repeated characters go from five to one).
  • I switched the No Common Blocks compiler option to NO, although it has the same error with or without it.
  • I created a new empty project and imported it. In this case, I was able to build, so the problem should be in my SDK.

Can someone please help me?

+4
source share
4 answers

, . , .

+2

.

, , , .

$(PROJECT_DIR) 

, .

+1

.

_IPDJobStatus - ?

.

+1

, View Controller (i, e ).

:

IPDJobStatus IPDDevice IPDAdministration. . , .

.. / , , , Xcode.

: UIkit UIApplication "(, UIApplication.h UIApplication.m). , UIApplication. . .

0
source

Source: https://habr.com/ru/post/1614405/


All Articles