twitter-archive / twitter-kit-ios

Twitter Kit is a native SDK to include Twitter content inside mobile apps.
Apache License 2.0
688 stars 449 forks source link

TwitterCore/TWTRDefines.h file not found #97

Open SharvinShah opened 5 years ago

SharvinShah commented 5 years ago

Lexical or Preprocessor issue TwitterCore/TWTRDefines.h file not found Error in TwitterKit-Prefix.pch

Expected behavior

It should create the archive without any issue.

Actual behavior

It is giving the above mentioned error instead of creating a archive.

Steps to reproduce the behavior

  1. Download the latest zip code for twitter-kit-ios
  2. Replace the Config.xcconfig.example with Config.xcconfig and add the appropriate key and secret
  3. Use the new bundle id in the DemoApp target and build selecting the "Generic iOS Device", it builds successfully
  4. Now try to create the archive instead of the build and this is where it fails. archive error
  5. Apart from this i have added the TwitterCore/TwitterKit project in my workspace of other project. I am trying to create the archive of that main project and it was failing to create an archive so i checked the original source which it self is failing to create the archive.
SalmanAhmedDev commented 5 years ago

i am also facing this issue, Please solve ASAP

SharvinShah commented 5 years ago

I was not able to solved the file not found problem but the alternate solution that I used is to use the Twitter core and twitter kit framework directly in my app. So first I used the demo app which this project provides and did some customisation in api calling which I wanted and then build that DemoApp so the Twitterkit and Twittercore framework will be ready in the products folder along with my changes saved. You just have to copy those framework in your app and now if you try to archive then it will create the archive. But make sure the framework that you added are for device and not for simulator.