Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9069359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T17:24:36+00:00 2026-06-16T17:24:36+00:00

I have the following log output when running my application the iOS5 simulator. Both

  • 0

I have the following log output when running my application the iOS5 simulator. Both locations are the same. I get the following error for just about every class that is part of JSONKit.

Class JKSerializer is implemented in both /Users/myHomeDir/Library/Application Support/iPhone Simulator/5.0/Applications/33E6C55B-4883-48FF-BEFF-3FBA9C071CAB/MyApp.app/MyApp and /Users/myHomeDir/Library/Application Support/iPhone Simulator/5.0/Applications/33E6C55B-4883-48FF-BEFF-3FBA9C071CAB/MyApp.app/MyApp. One of the two will be used. Which one is undefined.

If this is appropriate, I have just ran a complicated merge, and I would prefer to not have to revert back to a previous version.

Any ideas on how this error occurs, how to prevent it, and how to fix it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T17:24:37+00:00Added an answer on June 16, 2026 at 5:24 pm

    It’s because the JSONKit.m implementation file is a member of more than one target and one of those targets has been included as a dependency on the other.

    So, for example, checking target membership:

    enter image description here

    Here you can see that the file is a member of Pods-UnitTests and Pods.

    This reflects the settings in Build Phases -> Compile Sources for each respective target.

    Being a member of two targets isn’t a problem per se. Rather the issue is that one of these targets is a dependency on the other. So Pods-UnitTests has a dependency on Pods. So, when you check the build transcript for unit tests, if you search for JSONKit.m, you’ll find it twice. Once for libPods.a, and again for the Unit Tests target.

    If you’re not using CocoaPods then the solution is simply to remove the JSONKit.m file so it is only compiled once.

    If you are using CocoaPods then I’m not sure what the solution is because although you don’t want to compile the file twice, you will no doubt need to import the headers somewhere in your unit test code. As yet I’m not sure how to do that.

    Here are some references:

    https://github.com/CocoaPods/CocoaPods/issues/115

    Class Foo is implemented in both MyApp and MyAppTestCase. One of the two will be used. Which one is undefined

    http://sealedabstract.com/code/tired-of-getting-mach-o-linker-errors-when-unit-testing/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to understand debug output from a crash log. I have the following
I have the following log entry that I am processing in PowerShell I'm trying
I'm using Jboss 7.1.1 and I have the following log definition: <subsystem xmlns=urn:jboss:domain:logging:1.1> <console-handler
I have the following code: Log.e(MainScreen, 1); ListAction listAction = new ListAction(this); Log.e(MainScreen, 2);
I have the following code snippet: #ifdef DO_LOG #define log(p) record(p) #else #define log(p)
For example suppose I have the following two functions function a(param1) { console.log(param1); }
I have the following function //simple function with parameters and variable function thirdfunction(a,b,c,d){ console.log(the
I have a log of following format << [ABC] some other data some other
I have the following models but I cannot get the custom method reorder_action_items to
I have the following small code snippet with the following expected and real output.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.