How can I solve XCode 12 build error with Parse SDK? - xcode

I just downloaded XCode 12.2 and created new empty project.
Then I imported Parse SDK with pod.
The problem is that the project doesn't build.
errors found:
framework not found Parse
ld: framework not found Parse
clang: error: linker command failed with exit code 1 (use -v to see invocation)
How can I solve it?

I was having a similar issue and tried a dozen different fixes. The one that seemingly worked was to update the Podfile to install Parse directly from GitHub.
I changed pod 'Parse' to pod 'Parse', :git => 'https://github.com/parse-community/Parse-SDK-iOS-OSX.git'
I say "Seemingly" because some of my other fixes may have contributed to its success.

Which version of the Parse SDK are you using? Can you share the contents of your Podfile?
Did you open the xcworkspace file instead of the xcodeproj?
I just installed Parse 1.18.0 using Cocoapods and it is working normally.

Related

Linphone - getting SDK

I'm trying to follow the instruction for Linphone, to download the SDK for iOS, either here:
https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Getting%20started/iOS/
or here: https://gitlab.linphone.org/BC/public/linphone-iphone
They both start with this CocoaPods thing, that im not familiar with, and it doesn't seem to work... all I get is this error:
[!] Couldn't determine repo type for URL: 'https://gitlab.linphone.org/BC/public/podspec.git': (<unknown>): mapping values are not allowed in this context at line 3 column 17
Tried on Mac M1, and Intel Mac. Always the same error. I would rather not build the entire SDK, just need to include the SDK in my project.
To include the sdk you need to place a source to their podspec git in the pods file and then you can use it as if it was in cocoapods
Example ios pod file:
source ‘https://gitlab.linphone.org/BC/public/podspec.git’
source ‘https://github.com/CocoaPods/Specs.git’
platform :ios, ‘11.0’target ‘test’ do
project ‘test.xcodeproj’
pod ‘linphone-sdk’, ‘~> 5.0’
end
This is fixed for iOS since some months.
I have forgotten to fix this also for MacOS podspec repo.
This is now also fixed.
The explanation is here : https://github.com/BelledonneCommunications/linphone-sdk/issues/207
TL;DR : It was an issue caused by Gitlab's way to handle files not found (redirection) for Cocoapods-version.yml, confusing Cocoapods.

ld: library not found for -lAnalytics error for expo bare workflow app on iOS

I'm getting the following error from xcode when I try to build a project I ejected from expo:
ld: library not found for -lAnalytics
I have the expo Segment package installed, and have gone through the regular ejection process, installing and configuring unimodules, and running npx install
Where should I start looking for this error? - Analytics (4.1.3) appears in my podfile.lock and I have an Analytics folder in the Library folder. I'm at a complete loss
The fix was exactly as #brentvatne said, I had opened the project via xcodeproj NOT xcworkspace. Xcode remembers your choice so on subsequent openings of xcode it had defaulted to xcodeproj.
Solution: open project with xcworkspace.

How to add spotify framework to an custom pod

I try to add the Spotify framework to my custom cocoaPod project but i got an error :
ld: framework not found Spotify
clang: error: linker command failed with exit code 1 (use -v to see invocation)
i added the framework in the Build Phases of project and the search Path to.
but can't build.
Any one can help me please.
Sorry for my bad english.
Are you following some kind of tutorial for this? This shouldn't be an issue with Cocoapods, unless I'm misunderstanding something.
Make sure you clean your project first. I would remove the work you did in Build Phases, the intention of Cocoapods is to avoid adding frameworks manually as an embedded dependency.
Before a pod install, close your project. Pod install and then open up your workspace file once complete, not your xcodeproject file. Try building now. Build again with your imported pod statement. Please update if you need help further.

Header "/usr/include/sqlite3.h" not found

Just installed SQLite.swift from cocoapods in my Xcode project and I get an error when trying to build stating Header "/usr/include/sqlite3.h" not found. Therefore I get an error stating could not build Objective-C module 'SQLite3'.
Am I just doing something wrong or is there an issue here?
Adding a note to echo the above comments that this should be fixed now.
The latest 0.9.2 should also work ok and be slightly more compatible, even for Swift 2.2 (as well as Carthage, CocoaPods or manual install).

library not found for -lBaiduMapApi

I use cocoaPods in my current project.
Because the 'Baidu map iOS SDK' don't have a pod spec so I just create one.
The 'Baidu map iOS SDK' use a '.a' static library and some header files, I add them into my project through cocoaPods
But when I build my project, it always has an error:
ld: library not found for -lBaiduMapApi
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I google it then I try to set the Library Path in Xcode.
Both in my project and the target in Pods.
I am sure the path is correct, but the error still there.
Can somebody help me?
It's weird......
I remove whole my project and Recreate a new one.
And config the Podfile, update .....
When I back to the Xcode, build, Success!!!
I can find another way to solve this problems

Resources