dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Asked Answered
N

3

5

I have the following execution problem when the application is runing on simulator:

dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
Referenced from: /Users/Development1/Library/Application Support/iPhoneSimulator/4.3.2/Applications/730C5B6A-130C-471D-B8C8-CE119B06ACF5/Emisora Atlantico.app/Emisora Atlantico
Reason: image not found

Does anyone know how to fix it?

Nikaniki answered 22/4, 2013 at 20:26 Comment(1)
Have you tried a clean build? How did you add the framework?Trample
C
8

The Social framework was added in iOS 6.0. You can't use it under iOS 4.3 or 5.x. You need proper runtime checks to ensure that you make no attempt to access any of the classes from the framework when you run on a device (or simulator) with iOS prior to 6.0.

You also need to weak link the Social framework to your project.

See the SDK Compatibility Guide for complete details on performing proper runtime checks.

Ceram answered 22/4, 2013 at 21:11 Comment(0)
V
4

In addition to the answer provided by rmaddy, a quick solution may be changing the library from Required to Optional in the Build Phases tab of the Target Settings in XCode.

Vicinity answered 28/8, 2013 at 9:55 Comment(0)
D
4

Xcode 11 + CryptoKit

I had the same issue here with the new CryptKit Framework which is available with iOS 13. In my case I needed to weak link the entire framework as described here to solve the issue: https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/WeakLinking.html

Dg answered 24/9, 2019 at 6:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.