I have installed a pod in podfile:
pod 'TealiumIOS', '~> 5.0'
But an error occurs in runtime.
"dyld: Library not loaded: #rpath/TealiumIOS.framework/TealiumIOS
Referenced from: ...
Reason: image not found"
I can't find the solution in any other stackoverflow posts. I'm running XCode 7.3 and I tried simulator and a real device. Pods version 1.0.1. The crash persists.
Thank you.
I had a similar problem, so probably my solution is going to be useful for you as well.
Looks to be that Tealium pod was created just as a framework option and you are using cocoapods with the static library option. Basically you have to add the use_frameworks! option in the podfile.
platform :ios, 8.1
use_frameworks!
target :YourTarget
pod 'TealiumIOS'
end
Enjoy :)
Related
I have integrated TwilioVideo Framework using cocoapods.
I can successfully compile the code without any errors but after compiling the code, my code is crashing with below error
dyld: Library not loaded: #rpath/TwilioVideo.framework/TwilioVideo
Referenced from: /var/containers/Bundle/Application/E766BE03-A6C7-4BF7-A0B3-9FE2D76844DD/XXXXXXXX.app/XXXXXXXX
Reason: image not found
I tried different answers but nothing worked for me.
Does any one experienced this issue with TwilioVideo Framework.
System Specifications I used:
XCode 8.3.3
Deployment Target 8.1
My Pod file looks as below
xcodeproj 'ProjectName'
workspace 'ProjectName'
target :"ProjectName" do
platform :ios, '8.1'
pod 'AFNetworking', '2.6.3'
pod 'SocketRocket', '0.5'
pod 'TwilioSDK', '~>1.2.6'
pod 'TwilioVideo', '~> 1.3.0'
end
Thanks in Advance.....!
I seem to have a issue with my project settings, in Xcode 8. The issue is as follows:
When adding a new Pod - lets say, Pod Firebase - the install works, and adds the necessary files to my project. I can then, do #Import Firebase
All is fine, up to this point. However, as soon as I make a reference to the Firebase API example: [FirApp configure]; - all is still fine - autocomplete on Xcode works as expected and no issues. However, when building I then get a compile time issue which states:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRAppIndexing", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
The only way I am able to solve this - is by manually adding the _FIRAppIndexing.framework in my projects, Build settings, under Link Libraries with Libraries
To do that, I just drag and drop the frame work from the project navigator to the correct section under link libraries.
This works sometimes; as with other parts of the Firebase SDK, I get runtime crashes.
So, to try get to the root cause, I created a brand new test project, installed the Pods using Pod install - I however did not have to add the framework manually to Libraries - its actually not even listed there.
Everything in the test project worked just fine, at compile and run time.
Which leads me to believe its something in my project settings that's causing this.
Things I have tried
Removed cocoapods completely with pod deintegrate and removed all
other traces of it. Then did a clean build. Then Pod install
Added -objc to linker flag
Podfile
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyApp' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
use_frameworks!
# Pods for MyApp
pod 'Crashlytics'
pod 'AsyncDisplayKit', '>= 2.0'
pod 'Firebase'
pod 'Firebase/Messaging'
pod 'FBSDKCoreKit'
pod "HockeySDK", :subspecs => ['AllFeaturesLib']
pod 'Fabric'
pod 'FirebaseAppIndexing'
pod 'AFNetworking', '~> 3.0'
pod '1PasswordExtension', '~> 1.8.4'
target 'MyAppTests' do
inherit! :search_paths
# Pods for testing
end
end
GitHub example project
https://github.com/TanderZA/MyApp
I duplicated my current project - and removed all files. Problem still exists. You will see the project won't compile due to linker errors, with references to the Firebase AP.
By manually adding the frameworks to Link Libraries with Libraries, you will see that it should compile. But that is not how it should work. The current project has an issue with infoPlist.strings that I did not solve. But the project is in the state to demonstrate the issue.
I have checked the project, it seems you have messed up with schemes.
Create a new scheme properly then install the pods again and as the project is in Obj-C you don't need to enable frameworks in the podfile.
So comment like # use_frameworks!
Also update the pods using pod update
Then select the new scheme and build the project in it.
Let me know if you are not able to do it.
It is a xcode bug by the way
But try this :
Upgrade to latest version of xcode and Pods
Remove all architectures in your project
Clean your project
Add arcitectures from start.
This should resolve the issue.
Have you tried to use frameworks?
# platform :ios, '10.0'
use_frameworks!
target 'MyApp' do
I am not sure though but I think what you need is pod 'Firebase/Core'. not pod 'Firebase'.
This link have the list of the Firebase framework that can be used.
And, in the video on the top of the page it says something about there is no single pod that can be installed and you need to set each one of them on the podfile depending on the features you want.
My guess they mislead us in some places where they had pod 'Firebase'. I dont think that they meant that it should do the work.
som try the following:
# Pods for MyApp
pod 'Firebase/Core'
pod 'Firebase/Messaging'
.
.
I know that you said that you had it work on another new project.
I know there are many related questions about "framework not found FirebaseAnalytics". I have spent time on these related questions and tried the solutions suggested by others but in vain. So I have to ask again there and hope anyone can help me.
My problem is that i'm able to use Firebase SDK(IOS) installing by CocoaPods since Xcode 7. However once I upgraded to Xcode 8.1, I cannot compile my project anymore. It keeps showing the error:
ld: framework not found FirebaseAnalytics clang: error: linker command
failed with exit code 1 (use -v to see invocation)
Only when I remove the firebase in the pods can I build the project successfully. Also, it comes to my nightmare that i'm unable to install google analytic SDK because the same error message comes again.I think it is because google now combines the firebase in their SDK.
Here is what I tried from the results I found from other posts in Stack-overflow.
Open the workspace rather than xcode project
Adding $(inherited) in framework search path
Remove the CocoaPods project from xcode and re-install again
Update the Xcode's CocoaPods project
Adding use use_frameworks!, this will create error of #import"XXX" and #import not found
Delete red framework in Linker Binary with Libraries
My Xcode version is Version 8.1
Here is my pod setting:
platform :ios, '8.1'
def testing_pods
pod 'AFNetworking', '~> 3.0'
pod 'AWSMobileAnalytics', '~> 2.4.1'
pod 'AWSSNS', '~> 2.4.1'
pod 'Google/Analytics'
pod 'Firebase/Core'
end
target 'project' do
testing_pods
target 'project_test' do
inherit! :search_paths
end
end
target 'project_Dev' do
testing_pods
end
Hope someone can help me otherwise I have to migrate this old project to a new one.
I'm trying to integrate Localytics into my iOS app and am using cocoapods:
pod 'Localytics'
However, when I start my app (I'm not even invoking or importing the Localytics namespace yet) my app blows up with this error:
dyld: Library not loaded: #rpath/Localytics.framework/Localytics
Referenced from: /Users/bobbydavro/Library/Developer/CoreSimulator/Devices/8A21B45E-D77B-41F7-AB45-8F77DE48A4AF/data/Containers/Bundle/Application/556E667A-59D9-4072-81F1-B9CA600E0C46/MyApp.app/MyApp
Reason: image not found
I've found a number of related SO articles on this but none of the suggested fixes work:
make the linked pods binary 'optional'
disable bitcode
pod deintegrate, then re-install
I'm stuck, I also tried using Segment to integrate but it has a direct dependency on the same pod and blows up exactly the same way :/
Well, try the following:
go to Project Setting Your_Target -> General -> Embedded Binaries -> click on + button and add your library here
To use the dynamic framework with Cocoapods 1.0, you need to add the use_frameworks! statement to your Podfile.
platform :ios, '8.0'
target 'MyApp' do
use_frameworks!
pod 'Localytics'
end
This was happening to me as well. For some reason, my project didn't like their dynamic framework. (I'm not supporting iOS 7 so that shouldn't be an issue.)
My fix was to use their static framework.
pod 'LocalyticsStaticFramework'
It's likely an issue with the project settings, not their framework.
SOLUTION
ok so while the suggested answer helped to find a solution, this required some work. So I will describe my recipy if that helps.
My compilation problem was probably due to a mismatch between frameworks versions. While some frameworks were injected manually, some others were added using pods. This might have caused the problem and my project wasn't compiling for all simulators.
To overcome this, I deleted all residual frameworks and added them back using pods. However, this was not plug and play. Im using xcode 6.3.x (working with Swift 1) and there were semantic issues while using updated pods.
here is my working recipy:
# Uncomment this line to define a global platform for your project
platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
pod 'GoogleMaps'
pod 'Parse', '1.9.1'
pod 'ParseUI'
pod 'ParseFacebookUtilsV4', '~> 1.9'
pod 'ParseTwitterUtils', '~> 1.9'
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
full project is now compiling for all simulators.
QUESTION
I was working on an app which was building for all simulators until I added pods in order to integrate Google Maps SDK. Using this framwork, in addition to Parse SDK, required to add Facebook SDK and some libs. this was the starting point of my problem as there was a conflict with the -ObjC flag
Since then, my project is building fine for most simulator, except for iphone 4S, iphone 5 and some ipads. The returned error is the following:
Library compilation and build architectures are really new so I was wondering if this was only a simulator issue or if my problem would persist when building .api ? I would need to ensure everything would work as expected on devices going from iphone 4S to 6+
my valid architecture are the following: arm64 armv7 armv7s
Could someone guide me toward the understanding of what's happening?
I would be really happy to provide any additional information you may require to help me. Thanks you!
The Parse framework that you include in the project is built for 64 bit MacOSX.
I suggest you add Parse pods to your Podfile
pod 'Parse'
pod 'ParseUI'
pod 'ParseCrashReporting'