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 7838677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:10:35+00:00 2026-06-02T15:10:35+00:00

I’m seeing this error on an iOS 4.3.5 handset where my app has been

  • 0

I’m seeing this error on an iOS 4.3.5 handset where my app has been installed via an ad hoc deployment (downloaded over HTTP):

Dyld Error Message:

  Symbol not found: _OBJC_CLASS_$_NSJSONSerialization
  Expected in: /System/Library/Frameworks/Foundation.framework/Foundation

My code in the app doesn’t call iOS 5 libraries unless a class has been shown to exist (i.e. if(NSClassFromString(@"NSJSONSerialization")!=nil) so the issue isn’t that calls are being made to iOS 5 libraries on an iOS 4 device.

The app itself contains a static library which is my own code, and is where the NSJSONSerialization references exist.

The app works perfectly on the iOS 4.3 device if run directly from xcode (i.e. the iPhone attached to the development machine via USB cable). However, when run on the same device via the adhoc deployment, I see the crash.

The adhoc archive is built via Product->Archive in xcode 4, and then I use the ‘Distribute’ button to create the Ad-Hoc deployment .ipa file.

The app crashes almost instantly, leaving me to think that perhaps none of my code is being called at all, and that it’s my Archive build settings that may be incorrect here?

Many thanks in advance for any time spent helping!

  • 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-02T15:10:37+00:00Added an answer on June 2, 2026 at 3:10 pm

    This sounds like the exact same issue I ran into in this answer. There’s something slightly different about the way that weak linking is being handled when dealing with static libraries on building and archiving vs. direct installation via Xcode. The latter seems to handle class- and function-level weak linking as it should (since Xcode 4.3). However, when archiving a project containing a static library, that weak linking is not being used correctly.

    In my case, I needed to manually weak link the problematic iOS framework in the application using my static library in order for it to work when building for ad hoc or App Store distribution. To do this, go to your project’s build settings, go to the Build Phases tab, and expand the Link Binary With Libraries grouping. Find the offending framework (in my case it was CoreVideo.framework, but it sounds like you may need to do this for Foundation.framework) and change it from Required to Optional.

    This should clear up your weak-linking issue. I’m investigating this further to see if there’s a build setting I’m missing or if this is a linker bug.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
Basically, what I'm trying to create is a page of div tags, each has
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace

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.