Linking Error When Building Parse in Xcode 7

Linking error when building Parse in Xcode 7

I suggest you integrate Parse using CocoaPods.

Cocoapods manages the library dependencies in a much better way.

The following is a sample PodFile:

source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '7.0'

inhibit_all_warnings!

target '**YourProjectName**' do

pod 'Parse', '~> 1.7.1'

pod 'AFNetworking', '2.2.3'

end

ld: framework not found Parse Xcode 7 beta

Here is the solution:

There seems to be an issue with Xcode 7 beta where the search path for manually added frameworks is missing.

To fix the issue add the search path by doing the following:

  1. Select Project
  2. Click on Targets
  3. Click Build Settings
  4. Search for: Framework Search Path
  5. Add $(PROJECT_DIR) and choose Recursive option.

The project should build now.

Thanks to this post : Link to stack

Xcode 7 linker error with cocoapods

Either remove the "-undefined" linker flag or disable Bitcode.

If you don't have a good reason to use "-undefined", you should get rid of this:

Project Settings -> Target -> Build Settings -> Other Linker Flags -> delete the "-undefined" entry.

Else disabling Bitcode is the way to go:

Project Settings -> Target -> Build Settings -> Enable Bitcode -> set to "No".

Linking error Xcode 7.2: Framework Not Found

As mentioned in comments, OP accessed the project via .xcproject instead of .xcworkspace, thus the framework is not loading. To solve the problem (and restore to recommended settings by Cocoapods), follow the steps below:

  1. Close all Xcode project / workspace
  2. In Terminal, issue pod update in the Project folder to restore the settings
  3. After Cocoapods finished running, open the .xcworkspace and build the project

Reference Error Include Parse Framework in Swift Xcode 7

To use Parse, you'll need the following frameworks added from "Link Binary With Libraries" (from parse documentation):

  • AudioToolbox.framework
  • CFNetwork.framework
  • CoreGraphics.framework
  • CoreLocation.framework
  • QuartzCore.framework
  • Security.framework
  • StoreKit.framework
  • SystemConfiguration.framework
  • libz.dylib
  • libsqlite3.dylib

If you're using the -ObjC linker flag required by some third-party libraries, add these as well:

  • Accounts.framework
  • Social.framework

You must be missing libz.dylib and libslite3.dylib. Add the ones missing from the list above.

Linker Error (Clang)

The Parse library has bitcode disabled but your project has bitcode enabled. But the settings have to match. Either rebuild Parse with bitcode or disable bitcode in your project.



Related Topics



Leave a reply



Submit