-
-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build target missing ObjectivePGP framework (dyld: Library not loaded) #247
Comments
Hi @davidjb , is this issue still valid? I cannot reproduce this problem on my machine. |
@mssun Yes, still an issue. For me to be able to build this project, I have to manually link in the ObjectivePGP pods after the |
My pod version is 1.6.1. Also, Travis CI can compile the project (https://github.com/mssun/passforios/blob/master/.travis.yml) every time. |
Interesting, so same versions of Doing a bit of debugging around in cocoapod's source shows the build phase gets removed here: https://github.com/CocoaPods/CocoaPods/blob/master/lib/cocoapods/installer/user_project_integrator/target_integrator.rb#L457-L462 In short, for the Perhaps we can compare Stack
Installation Source
Plugins
Podfileplatform :ios, '10.2'
use_frameworks!
target 'passKit' do
pod 'ObjectivePGP', :git => 'https://github.com/krzyzanowskim/ObjectivePGP.git', :tag => '0.13.0'
target 'pass' do
inherit! :search_paths
end
target 'passExtension' do
inherit! :search_paths
end
target 'passKitTests' do
inherit! :search_paths
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
cflags = config.build_settings['OTHER_CFLAGS'] || ['$(inherited)']
cflags << '-fembed-bitcode'
config.build_settings['OTHER_CFLAGS'] = cflags
end
end
end |
@mssun If you delete I found CocoaPods/CocoaPods#8664. Seems like It is a bug in cocoapods >=v1.6.0. I have switched back to pod v1.5.3 now. Also, I updated |
Attempting to build passforios for the first time, following the build instructions, the compilation works and the app starts up on the simulator, but crashes immediately with:
Looking into why, when
pod install
is run, the CocoapodsEmbed Pods Frameworks
object gets removed from thepass.xcodeproj/project.pbxproj
file. Without this present, the ObjectivePGP pod is presumably unknown to Xcode and thus isn't linked in. I could manually add in theObjectivePGP.framework
into the target's General settings in Xcode and that would work but that would be working around the actual problem.Here's what my .pbxproj file looks immediately after running
pod install
-- this is a fresh clone after running thecarthage
commands andpod install
, before even opening the workspace in Xcode:I'm not familiar with the internals of Cocoapods but is this expected behaviour? I'm using v1.6.1 of Cocoapods. Attempting a
pod deintegrate && pod install
made no difference, just regenerating a bunch of other references in the .pbxproj file but still theEmbed Pods Frameworks
references get deleted.The text was updated successfully, but these errors were encountered: