I have imported a new version of a framework in my SDK. Anyway, I am not able to build on iPhone 6 running iOS 9.0.1 because of the following error that's driving 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 is happening for the same symbol _IPDJobStatus
being found twice in 5 files. The same is happening on iPhone 4S running iOS 9.1 with arm64 architecture. To import the framework, I deleted the old one from the project, imported the new one and check into the Link Binary with Library section wether the framework reference links to the correct updated file. Before asking I have tried to perform the following actions:
- I searched for the duplicate symbol inside the project scope with no result.
- I'm not importing a
.m
file by accident. - The Compile Sources of the Build Phases project settings doesn't include any duplicate file.
- The framework headers references in Headers of the Build Phases project settings link to the proper files.
- I tried to clean the project, empty the Derived Data folder, quit and relaunch Xcode.
- I added the
-ObjC
linker flag (in this case the duplicate symbols goes from five to only one). - I switched the No Common Blocks compiler setting to NO, though it has the same error with or without it.
- I created a new empty project and imported the framework there. In this case I was able to build, so the problem must resides in my SDK.
Could someone please give me some help?