3

I am trying to add the Parse.com SDK to my Xcode 7 project. I have followed the getting started guide and I have managed to do it before in Xcode 6. However this time I am being shown this error message when I try to build:

ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks

Jano
  • 62,815
  • 21
  • 164
  • 192
Tom Coomer
  • 6,227
  • 12
  • 45
  • 82

2 Answers2

17

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 the following without the quotes: "$(PROJECT_DIR)" and choose recursive option.

The project should build now.

Mohit Tomar
  • 5,173
  • 2
  • 33
  • 40
araMara
  • 223
  • 1
  • 8
3

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
Dan Harms
  • 4,725
  • 2
  • 18
  • 28
Nilesh Patel
  • 6,318
  • 1
  • 26
  • 40
  • Is there any documentation to help with this? I have used Cocoapods for Google Analytics before. Do I create a file called Podfile? – Tom Coomer Jun 10 '15 at 13:58
  • Yes you need to create that file. Refer this link http://www.raywenderlich.com/64546/introduction-to-cocoapods-2 if you face any dofficulty then feel free to ask me.. – Nilesh Patel Jun 10 '15 at 17:15
  • Should I simply write: `platform :ios, '9.0'` and `pod 'Parse'` or `pod 'Parse.com'` – Tom Coomer Jun 10 '15 at 17:46
  • If you would like to support iOS 9.0 users only then you can write 9.0 else you can write 7.0 or so. if you set 7.0 then majority of the users & devices will be covered. For the pod file content i have updated my answer with it. Please copy & paste it there you go. Remove AFNetworking stuff if you don't need it. – Nilesh Patel Jun 11 '15 at 04:24