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:
- Select Project
- Click on Targets
- Click Build Settings
- Search for:
Framework Search Path
- 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:
- Close all Xcode project / workspace
- In Terminal, issue
pod update
in the Project folder to restore the settings - 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
How to Call a Func Within a Closure
Swift: Implementing Protocol Initializer in a Class
Swift 2: Multiline Mkpointannotation
Ios13 Uialertcontroller with Custom View & Preferredstyle as Actionsheet Grayscale All Colors
Swift Deleting Table View Cell When Timer Expires
Why Does the Compiler Not See the Default Code in a Protocol
Persist Accessibility Permissions Between Builds in Xcode 13
How to Make Exponents in the Swiftui
Swift Generic Protocol Function Parameters
Xctest Unit Test Data Response Not Set in Test After Viewdidload
How to Retrieve Audio File from Parse Swift
Swift: Casting a Floatingpoint Conforming Value to Double
Use of or Operator on Cloudkit Predicate
Swiftui Mysterious Spacing Between Large Text and Textfield in VStack