{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6596","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6596/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6596/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6596/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6596","id":217614855,"number":6596,"title":"dyld: Library not loaded: @rpath/GoogleInteractiveMediaAds.framework/GoogleInteractiveMediaAds","user":{"login":"hborders","id":166391,"avatar_url":"https://avatars2.githubusercontent.com/u/166391?v=3","gravatar_id":"","url":"https://api.github.com/users/hborders","html_url":"https://github.com/hborders","followers_url":"https://api.github.com/users/hborders/followers","following_url":"https://api.github.com/users/hborders/following{/other_user}","gists_url":"https://api.github.com/users/hborders/gists{/gist_id}","starred_url":"https://api.github.com/users/hborders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hborders/subscriptions","organizations_url":"https://api.github.com/users/hborders/orgs","repos_url":"https://api.github.com/users/hborders/repos","events_url":"https://api.github.com/users/hborders/events{/privacy}","received_events_url":"https://api.github.com/users/hborders/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-28T16:16:52Z","updated_at":"2017-03-28T16:50:21Z","closed_at":null,"body":"* [x] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\nI added [Google's IMA SDK Version 3](https://developers.google.com/interactive-media-ads/docs/sdks/ios/) to my project with CocoaPods, but my app crashes on launch in the simulator, and I see the following error:\r\n\r\n```\r\ndyld: Library not loaded: @rpath/GoogleInteractiveMediaAds.framework/GoogleInteractiveMediaAds\r\n  Referenced from: /path/to/my/app/My_App.app/My_App\r\n  Reason: image not found\r\n```\r\n\r\n[Other Google IMA SDK Version 3 users have the same problem.](https://groups.google.com/d/msg/ima-sdk/QrwiC1JWyD0/_f6K37JXBgAJ)\r\n\r\n## What did you do?\r\nI added Google's IMA SDK Version 3 to my projet the same way [Google's](https://github.com/googleads/googleads-ima-ios/blob/master/Objective-C/BasicExample/Podfile) [examples](https://github.com/googleads/googleads-ima-ios/blob/master/Objective-C/AdvancedExample/Podfile) do:\r\n\r\n```\r\npod 'GoogleAds-IMA-iOS-SDK'       , '3.5.0'\r\n```\r\n\r\nThen, I deleted my `Podfile.lock` file and `Pods` directory and then ran `pod install`:\r\n\r\n```\r\ncd $PROJECT_ROOT\r\nrm -rf Podfile.lock Pods\r\npod install\r\n```\r\n\r\n## What did you expect to happen?\r\n\r\nMy app launches normally.\r\n\r\n## What happened instead?\r\n\r\nMy app crashes on launch with the following error in the console:\r\n\r\n```\r\ndyld: Library not loaded: @rpath/GoogleInteractiveMediaAds.framework/GoogleInteractiveMediaAds\r\n  Referenced from: /path/to/my/app/My_App.app/My_App\r\n  Reason: image not found\r\n```\r\n\r\n## Workaround\r\n\r\nIf I manually add `@executable_path/Frameworks` to my target's `LD_RUNPATH_SEARCH_PATHS`, as instructed by [this comment](http://stackoverflow.com/questions/24333981/ios-app-with-framework-crashed-on-device-dyld-library-not-loaded-xcode-6-beta#comment67493855_24345546) on [this stackoverflow answer](http://stackoverflow.com/a/24345546/9636) the problem goes away. [Google's example code uses the same workaround.](https://github.com/googleads/googleads-ima-ios/blob/master/Objective-C/AdvancedExample/AdvancedExample.xcodeproj/project.pbxproj#L318)\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.2.0\r\n        Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]\r\n    RubyGems : 2.0.14.1\r\n        Host : Mac OS X 10.12.4 (16E195)\r\n       Xcode : 8.2.1 (8C1002)\r\n         Git : git version 2.11.0\r\nRuby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ ea7502c16b473994653e3b341ed0221ab8d6c353\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /usr/local/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\nclaide-plugins         : 0.9.0\r\ncocoapods-deintegrate  : 1.0.1\r\ncocoapods-dependencies : 1.0.0\r\ncocoapods-plugins      : 1.0.0\r\ncocoapods-search       : 1.0.0\r\ncocoapods-stats        : 1.0.0\r\ncocoapods-trunk        : 1.1.2\r\ncocoapods-try          : 1.1.0\r\ncocoapods_debug        : 0.1.0\r\n```\r\n\r\n### Podfile\r\n\r\nI can't include my Podfile at this time, but this is a 100% Objective-C project with static linking.\r\n\r\n## Project that demonstrates the issue\r\n\r\nI can't include my project at this time, but again, this is a 100% Objective-C project with static linking."},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/289833145","html_url":"https://github.com/CocoaPods/CocoaPods/issues/6596#issuecomment-289833145","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/6596","id":289833145,"user":{"login":"hborders","id":166391,"avatar_url":"https://avatars2.githubusercontent.com/u/166391?v=3","gravatar_id":"","url":"https://api.github.com/users/hborders","html_url":"https://github.com/hborders","followers_url":"https://api.github.com/users/hborders/followers","following_url":"https://api.github.com/users/hborders/following{/other_user}","gists_url":"https://api.github.com/users/hborders/gists{/gist_id}","starred_url":"https://api.github.com/users/hborders/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hborders/subscriptions","organizations_url":"https://api.github.com/users/hborders/orgs","repos_url":"https://api.github.com/users/hborders/repos","events_url":"https://api.github.com/users/hborders/events{/privacy}","received_events_url":"https://api.github.com/users/hborders/received_events","type":"User","site_admin":false},"created_at":"2017-03-28T16:50:21Z","updated_at":"2017-03-28T16:50:21Z","body":"Executing:\r\n\r\n```\r\n$ file Pods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast\r\n```\r\n\r\nGives:\r\n\r\n```\r\nPods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast: Mach-O universal binary with 4 architectures: [arm_v7: current ar archive] [i386] [x86_64] [arm64]\r\nPods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast (for architecture armv7):\tcurrent ar archive\r\nPods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast (for architecture i386):\tcurrent ar archive\r\nPods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast (for architecture x86_64):\tcurrent ar archive\r\nPods/google-cast-sdk/GoogleCastSDK-2.10.4-Release/GoogleCast.framework/GoogleCast (for architecture arm64):\tcurrent ar archive\r\n```\r\n\r\nSo it looks like `google-cast-sdk` does package static archives into its framework."}}
{"actor":{"display_login":"hborders"}}