Skip to content
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

the example project does not compile #236

Closed
murad1981 opened this issue Jun 18, 2016 · 12 comments
Closed

the example project does not compile #236

murad1981 opened this issue Jun 18, 2016 · 12 comments

Comments

@murad1981
Copy link

after doing pod install for the library and the example project, there is a build error when trying to compile it with XCode 7 (the error is something like: -ipods not found ...)

please check out the project for errors.

@gugges
Copy link
Contributor

gugges commented Jun 20, 2016

You probably just need to switch the target to InstagramKit-Example. You can also type "pod try InstagramKit" from terminal.

@murad1981
Copy link
Author

already done so but I keep getting this error:
screen shot 2016-06-20 at 9 03 08 am

@gugges
Copy link
Contributor

gugges commented Jun 20, 2016

You need to run pod install in the /InstagramKit/InstagramKit-Example directory and then open the xcworkspace, not the xcproject in that same location.

@murad1981
Copy link
Author

murad1981 commented Jun 20, 2016

I've already done this exactly, you can try it out.

@gugges
Copy link
Contributor

gugges commented Jun 21, 2016

Pulled down the latest master and can confirm this works fine. Are you opening the workspace in the /InstagramKit/InstagramKit-Example directory or just the /InstagramKit/ directory? Also, please confirm if my suggestion to run "pod try InstagramKit" from terminal works?

@kvnbautista
Copy link

@murad1981 or you can just open a new project, stuff all the files from the repository even the pod files folder. Then Compile it. Whichever is easier for you.

@murad1981
Copy link
Author

i've tried pod try Instagram-Kit in InstagramKit-master and InstagramKit-Example directories but terminal gave me the same error for both cases: [!] Unable to find a specification for Instagram-Kit

@gugges
Copy link
Contributor

gugges commented Jun 22, 2016

pod try works from any directory in bash if cocoapods is installed. Your issue is that it should be pod try InstagramKit (no dash) not pod try Instagram-Kit

@MuezzaGit
Copy link

Greetings, I am facing the same error that Murad1981 is reporting. Have tried the steps recommend but still does not compile. Any suggestions appreciated. Thanks.

@qqc
Copy link

qqc commented Jun 22, 2016

Podfile definition changed in newer versions of Cocoapods, so if pod install results in the following error:

$ pod install
Analyzing dependencies
[!] The dependency `InstagramKit (from `../`)` is not used in any concrete target.
The dependency `InstagramKit/UICKeyChainStore (from `../`)` is not used in any concrete target.

Try the following podfile instead:

platform :ios, '9.0'

target 'InstagramKit-Example' do
  use_frameworks!

  # Pods for InstagramKit-Example
  pod "InstagramKit", :path => '../'
  pod "InstagramKit/UICKeyChainStore", :path => '../'

end

@murad1981 To address the Library not found for -lPods issue, remove libPods.a from Linked Frameworks and Libraries under General in the project settings.

screen shot 2016-06-22 at 20 13 38

@ricsantos
Copy link
Contributor

I have made PR #273 which resolves this.

@shyambhat
Copy link
Owner

Fixed with InstagramKit 4.0. Thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants