flutter_twitter_login icon indicating copy to clipboard operation
flutter_twitter_login copied to clipboard

Get Error TwitterKit/TwitterKit.h file not found

Open isoos opened this issue 7 years ago • 33 comments

From @lucyhoang on August 23, 2018 2:22

URL: https://pub.dartlang.org/packages/flutter_twitter_login

Hi, when i using this package with setting ios platform is 9, then i will get the error "TwitterKit/TwitterKit.h file not found". It loaded TwitterKit v3.0 but the code logic using api of TwitterKit v2.8

Copied from original issue: dart-lang/pub-dartlang-dart#1542

isoos avatar Aug 23 '18 06:08 isoos

@isoos I forked this repo and updated TwitterKit to 3>. Checkout => https://github.com/eudangeld/flutter_twitter_login In your pubspec add => flutter_twitter_login: git: git://github.com/eudangeld/flutter_twitter_login.git

eudangeld avatar Aug 31 '18 18:08 eudangeld

it is @lucyhoang who had the issue, I've just moved it.

isoos avatar Aug 31 '18 19:08 isoos

is this issue solved yet? i face this problem today In android its working fine, in ios not able to run.

https://stackoverflow.com/questions/47918893/i-am-getting-error-that-import-twitterkit-twitterkit-h-not-found-in-xcode

ZeroCool00 avatar Oct 29 '18 08:10 ZeroCool00

@ZeroCool00 Checkout => https://github.com/eudangeld/flutter_twitter_login

eudangeld avatar Oct 30 '18 15:10 eudangeld

I'm also still having this issue. I have tried the above suggestions, but still gives error. Please help!!!

androidmaven avatar Jan 15 '19 16:01 androidmaven

As @eudangeld mentions - just reference his repo for flutter_twitter_login in your pubspec.yaml. You will also need to ensure your pod's define a platform of 10.1 since the TWTRKit.h is now referenced & his podspec defines a min ios version of 10.1,.

You may also need to remove :


a) your build folder
b) your .pub-cache
c) your .packages
d) your podfile.lock

then after you have defined a min platform of 10.1 in your podfile, just make a simple change to your pubspec.yaml and save to force a re-download of all your packages.

Lastly - you may need to do a pod update flutter_twitter_login so that this downloads the correct git reference and initalises your environment correctly.

The only other issue you may experience after you perform all of the above is you may get this error when you try and log into twitter (from a flutter app) :

Callback URL not approved for this client application. Approved callback URLs can be adjusted in your application settings

This is because of new changes to twitter sdk that requires callback urls to be whitelisted - just add the callback URLS to your twitter app and also define the correct CFBundleURLTypes in info.plist with a CFBundleTypeRole defined as Editor.

Doing everything above will get flutter_twitter_login working again but the key to this resolution is to now reference eudangeld forked repo.

ukrx-xamd avatar Jan 17 '19 13:01 ukrx-xamd

flutter_twitter_login

This worked like a charm for a Flutter Swift project. but for a Flutter ios project with objective c I still get this error.

oliverbytes avatar Feb 14 '19 10:02 oliverbytes

Flutter OBJ-c project requires bridging header support to allow mix of OBJ-c and Swift packages. Just open your project in x-code and create a swift file, this will create the necessary bridging file.

ukrx-xamd avatar Feb 14 '19 10:02 ukrx-xamd

Flutter OBJ-c project requires bridging header support to allow mix of OBJ-c and Swift packages. Just open your project in x-code and create a swift file, this will create the necessary bridging file.

I didn't create/add a swift file using xcode but it just fixed itself. maybe after a few cleaning of build folder and re fetching the git repo package.. anyway thanks a lot for pointing out here how to fix these issues not mentioned by eudangeld.. huge thanks to eudangeld as well!

oliverbytes avatar Feb 14 '19 13:02 oliverbytes

Your welcome, but yes - main 'shout out' -> @eudangeld as his forked repo provides the 'glue' to make this all work.

At some stage if you started out with the default Obj-c enabled project - as you add more and more plugins, you will definitely experience the issues of the plugins not working in your iOS project and wont be able to compile, keep my suggestion re: Creation of a bridging file in your 'Flutter resource box' as this will save you endless hours if not days of frustration ....

ukrx-xamd avatar Feb 14 '19 13:02 ukrx-xamd

Your welcome, but yes - main 'shout out' -> @eudangeld as his forked repo provides the 'glue' to make this all work.

At some stage if you started out with the default Obj-c enabled project - as you add more and more plugins, you will definitely experience the issues of the plugins not working in your iOS project and wont be able to compile, keep my suggestion re: Creation of a bridging file in your 'Flutter resource box' as this will save you endless hours if not days of frustration ....

Mine now has a bridging header, I guess it just generated by itself maybe or maybe was already there when I created the project before. But right now I'm having an error on my other swift project

framework module TwitterCore_Private
 <module-includes>:1:1: warning: umbrella header for module 'TwitterCore' does not include header 'TWTRColorUtil.h' [-Wincomplete-umbrella]
 #import "Headers/TwitterCore.h"
 ^
 2 warnings generated.
 3 warnings generated.
 4 warnings generated.
 Undefined symbols for architecture armv7:
   "_OBJC_CLASS_$_TWTRAPIClient", referenced from:
       objc-class-ref in TwitterLoginPlugin.o
   "_OBJC_CLASS_$_TWTRTwitter", referenced from:
       objc-class-ref in TwitterLoginPlugin.o
 ld: symbol(s) not found for architecture armv7
 clang: error: linker command failed with exit code 1 (use -v to see invocation)

oliverbytes avatar Feb 14 '19 13:02 oliverbytes

First approach would be :

  1. Delete builds -> Flutter clean
  2. Delete app from device
  3. Did you add swift support to your PodFile with min version 4.0 ?

Other :

The error appears potentially because you have a static library that has been built for a different architecture. I'm assuming you tried to deploy this on a real device ? Do you get the same error if you deploy to a simulator ?

Try and include the correct library files for the architecture you are deploying to or ensure the lib you have is packaged to support all architectures.

ukrx-xamd avatar Feb 14 '19 14:02 ukrx-xamd

First approach would be :

  1. Delete builds -> Flutter clean
  2. Delete app from device
  3. Did you add swift support to your PodFile with min version 4.0 ?

Other :

The error appears potentially because you have a static library that has been built for a different architecture. I'm assuming you tried to deploy this on a real device ? Do you get the same error if you deploy to a simulator ?

Try and include the correct library files for the architecture you are deploying to or ensure the lib you have is packaged to support all architectures.

Hi @ukrx-xamd I only tried in the simulator, also I am just trying to manually build it for debug not running it yet. I've also tried cleaning the build folder. The weird thing is this error only happens on my desktop mac computer but not on my macbook.

How do I add support for swift in my pod file? Is it by using use_frameworks! ?

Thank you so much for trying to help my problem.

oliverbytes avatar Feb 14 '19 23:02 oliverbytes

Thats bizarre. If you have the same Flutter project running correctly on your macBook (with exactly the same versions plugins in your podfile) but not on your desktop mac .

I would check that you have :

  1. Same XCODE version/tools
  2. Remove all simulators on your Desktop and add again (Simulator->manage devices->select device->delete
  3. Do a Flutter doctor on both machines and ensure results are the same
  4. Rebuild PODFILE on Desktop (Same instructions that I originally wrote about here :

https://github.com/roughike/flutter_twitter_login/issues/12#issuecomment-455176298

To support SWIFT (Changes made in your PODFILE) :

1. Specify minimum Swift version that your swift plugins require , i.e

platform :ios, '10.1'

2. Add a use_frameworks! , i.e

target 'Runner' do
  use_frameworks!

3. Add the minimum swift version that ALL of your SWIFT plugins require , i.e :

config.build_settings['SWIFT_VERSION'] = '4.0'

i.e :


post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['ENABLE_BITCODE'] = 'NO'
      config.build_settings['SWIFT_VERSION'] = '4.0'
    end
  end
end

ukrx-xamd avatar Feb 15 '19 10:02 ukrx-xamd

change #import <TwitterKit/TwitterKit.h> to #import <TwitterKit/TWTRKit.h> in file TwitterLoginPlugin.m add TwitterKit.framework,TwitterCore.framework to flutter_twitter_login.podspec it works for me

example:

flutter_twitter_login:
    git: git://github.com/vudvhitech/flutter_twitter_login.git

HenryQz avatar Jun 13 '19 08:06 HenryQz

That git gives errors with latest Flutter SDK (1.7.8)

Launching lib/main.dart on iPhone Xʀ in debug mode... Xcode build done. 5.4s Failed to build iOS app Error output from Xcode build: ↳ ** BUILD FAILED ** Xcode's output: ↳ === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/extobjc/EXTScope.m:10: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/extobjc/EXTScope.h:91:35: warning: this block declaration is not a prototype [-Wstrict-prototypes] typedef void (^mtl_cleanupBlock_t)(); ^ void 1 warning generated. === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.m:14: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/extobjc/EXTScope.h:91:35: warning: this block declaration is not a prototype [-Wstrict-prototypes] typedef void (^mtl_cleanupBlock_t)(); ^ void In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.m:15: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:223:27: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// If objCType matches @encode(id), the value transformer returned by ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:226:65: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// The default implementation transforms properties that match @encode(BOOL) ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:230:47: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// as it would be returned by the @encode() directive. ^~~~~~~ 4 warnings generated. === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLModel+NSCoding.m:11: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/extobjc/EXTScope.h:91:35: warning: this block declaration is not a prototype [-Wstrict-prototypes] typedef void (^mtl_cleanupBlock_t)(); ^ void 1 warning generated. === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLModel.m:12: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/extobjc/EXTScope.h:91:35: warning: this block declaration is not a prototype [-Wstrict-prototypes] typedef void (^mtl_cleanupBlock_t)(); ^ void 1 warning generated. === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/NSDictionary+MTLJSONKeyPath.m:11: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:223:27: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// If objCType matches @encode(id), the value transformer returned by ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:226:65: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// The default implementation transforms properties that match @encode(BOOL) ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:230:47: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// as it would be returned by the @encode() directive. ^~~~~~~ 3 warnings generated. === BUILD TARGET connectivity OF PROJECT Pods WITH CONFIGURATION Debug === In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/NSValueTransformer+MTLPredefinedTransformerAdditions.m:10: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:223:27: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// If objCType matches @encode(id), the value transformer returned by ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:226:65: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// The default implementation transforms properties that match @encode(BOOL) ^~~~~~~ /Users/xamxam/workspace/_projects/ajax/ios/Pods/Mantle/Mantle/MTLJSONAdapter.h:230:47: warning: '@endcode' command does not terminate a verbatim text block [-Wdocumentation] /// as it would be returned by the @encode() directive. ^~~~~~~ 3 warnings generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Any.pbobjc.m:17:10: warning: non-portable path to file '<protobuf/Any.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/Any.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~ <protobuf/Any.pbobjc.h> 1 warning generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:17:10: warning: non-portable path to file '<protobuf/Api.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/Api.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~ <protobuf/Api.pbobjc.h> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:18:10: warning: non-portable path to file '<protobuf/SourceContext.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/SourceContext.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <protobuf/SourceContext.pbobjc.h> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Api.pbobjc.m:19:10: warning: non-portable path to file '<protobuf/Type.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/Type.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~~ <protobuf/Type.pbobjc.h> 3 warnings generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Duration.pbobjc.m:17:10: warning: non-portable path to file '<protobuf/Duration.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/Duration.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ <protobuf/Duration.pbobjc.h> 1 warning generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/Empty.pbobjc.m:17:10: warning: non-portable path to file '<protobuf/Empty.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/Empty.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~~~ <protobuf/Empty.pbobjc.h> 1 warning generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/google/protobuf/FieldMask.pbobjc.m:17:10: warning: non-portable path to file '<protobuf/FieldMask.pbobjc.h>'; specified path differs in case from file name on disk [-Wnonportable-include-path] #import <Protobuf/FieldMask.pbobjc.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <protobuf/FieldMask.pbobjc.h> 1 warning generated. In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:54:3: error: redefinition of enumerator 'kGPBUnrecognizedEnumeratorValue' kGPBUnrecognizedEnumeratorValue = (int32_t)0xFBADBEEF, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:54:3: note: previous definition is here kGPBUnrecognizedEnumeratorValue = (int32_t)0xFBADBEEF, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:73:3: error: typedef redefinition with different types ('union GPBGenericValue' vs 'union GPBGenericValue') } GPBGenericValue; ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:73:3: note: previous definition is here } GPBGenericValue; ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:82:26: error: redefinition of 'GPBDataType' typedef NS_ENUM(uint8_t, GPBDataType) { ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:82:26: note: previous definition is here typedef NS_ENUM(uint8_t, GPBDataType) { ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:84:3: error: redefinition of enumerator 'GPBDataTypeBool' GPBDataTypeBool = 0, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:84:3: note: previous definition is here GPBDataTypeBool = 0, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:86:3: error: redefinition of enumerator 'GPBDataTypeFixed32' GPBDataTypeFixed32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:86:3: note: previous definition is here GPBDataTypeFixed32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:88:3: error: redefinition of enumerator 'GPBDataTypeSFixed32' GPBDataTypeSFixed32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:88:3: note: previous definition is here GPBDataTypeSFixed32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:90:3: error: redefinition of enumerator 'GPBDataTypeFloat' GPBDataTypeFloat, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:90:3: note: previous definition is here GPBDataTypeFloat, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:92:3: error: redefinition of enumerator 'GPBDataTypeFixed64' GPBDataTypeFixed64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:92:3: note: previous definition is here GPBDataTypeFixed64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:94:3: error: redefinition of enumerator 'GPBDataTypeSFixed64' GPBDataTypeSFixed64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:94:3: note: previous definition is here GPBDataTypeSFixed64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:96:3: error: redefinition of enumerator 'GPBDataTypeDouble' GPBDataTypeDouble, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:96:3: note: previous definition is here GPBDataTypeDouble, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:102:3: error: redefinition of enumerator 'GPBDataTypeInt32' GPBDataTypeInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:102:3: note: previous definition is here GPBDataTypeInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:108:3: error: redefinition of enumerator 'GPBDataTypeInt64' GPBDataTypeInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:108:3: note: previous definition is here GPBDataTypeInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:110:3: error: redefinition of enumerator 'GPBDataTypeSInt32' GPBDataTypeSInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:110:3: note: previous definition is here GPBDataTypeSInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:112:3: error: redefinition of enumerator 'GPBDataTypeSInt64' GPBDataTypeSInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:112:3: note: previous definition is here GPBDataTypeSInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:114:3: error: redefinition of enumerator 'GPBDataTypeUInt32' GPBDataTypeUInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:114:3: note: previous definition is here GPBDataTypeUInt32, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:116:3: error: redefinition of enumerator 'GPBDataTypeUInt64' GPBDataTypeUInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:116:3: note: previous definition is here GPBDataTypeUInt64, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:118:3: error: redefinition of enumerator 'GPBDataTypeBytes' GPBDataTypeBytes, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:118:3: note: previous definition is here GPBDataTypeBytes, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:120:3: error: redefinition of enumerator 'GPBDataTypeString' GPBDataTypeString, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:120:3: note: previous definition is here GPBDataTypeString, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:37: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities_PackagePrivate.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBUtilities.h:33: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBArray.h:33: /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBRuntimeTypes.h:122:3: error: redefinition of enumerator 'GPBDataTypeMessage' GPBDataTypeMessage, ^ In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.m:35: In file included from /Users/xamxam/workspace/_projects/ajax/ios/Pods/Protobuf/objectivec/GPBWellKnownTypes.h:40: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/Any.pbobjc.h:11: In file included from /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBDescriptor.h:33: /Users/xamxam/workspace/_projects/ajax/build/ios/Debug-iphonesimulator/Protobuf/Protobuf.framework/Headers/GPBRuntimeTypes.h:122:3: note: previous definition is here GPBDataTypeMessage, ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:17: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0); ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:133:67: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] _view.frame = CGRectMake(0.0, 0.0, CGRectGetWidth(_view.bounds), 0.0); ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:148:18: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] [_view sizeToFit]; ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:189:13: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] if (_navigationController) { ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:190:40: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] [self updateNavigationBarY:_view.statusBarHeight]; ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:193:24: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] CGRect frame = _view.frame; ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:195:9: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] _view.frame = frame; ^ self-> /Users/xamxam/workspace/_projects/ajax/ios/Pods/Bolts/Bolts/iOS/BFAppLinkReturnToRefererController.m:203:17: warning: block implicitly retains 'self'; explicitly mention 'self' to indicate this is intended behavior [-Wimplicit-retain-self] _view.closed = YES; ^ self-> 8 warnings generated. Could not build the application for the simulator. Error launching application on iPhone Xʀ. Exited (sigterm)

MsXam avatar Jul 11 '19 10:07 MsXam

@MsXam Try this: • flutter clean • delete ios/podfile.lock and ios/Pods • update cocoapods to latest stable version sudo gem install cocoapodspod repo updateflutter run

eudangeld avatar Jul 11 '19 15:07 eudangeld

Hi @eudangeld - Since my last post I have gone back to 1.5.4-Hotfix2 & also have your git in pubspec.yaml -

flutter_twitter_login: git: git://github.com/eudangeld/flutter_twitter_login.git

cocoapods = 1.7.4

Thoroughly cleaning project with everything you mentioned above plus also cleaning/removing .packages, .flutter-plugins, .pub-cache, DerivedData, pubspec.lock & also doing a pod deintegrate etc does not resolve the build issues which didnt happen until yesterday upgrading to 1.7.8. Even though 1.7.8 is removed and downgraded to 1.5.4 we still get same issues so something somewhere is corrupt and hasnt been cleaned properly ...

Notice also the error below

Undefined symbols for architecture x86_64:

Podfile sets platform to ioS 11

Defined as : - podfile.pdf

Main Errors

/Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module] explicit module TwitterCore.Private { ^ /Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name explicit module TwitterCore.Private { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ framework module TwitterCore_Private /Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module] explicit module TwitterCore.Private { ^ /Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name explicit module TwitterCore.Private { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ framework module TwitterCore_Private /Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: warning: private submodule 'TwitterCore.Private' in private module map, expected top-level module [-Wprivate-module] explicit module TwitterCore.Private { ^ /Users/xamxam/workspace/_projects/xayz/ios/Pods/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap:1:29: note: rename 'TwitterCore.Private' to ensure it can be found by name explicit module TwitterCore.Private { ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ framework module TwitterCore_Private :1:1: warning: umbrella header for module 'TwitterCore' does not include header 'TWTRColorUtil.h' [-Wincomplete-umbrella] #import "Headers/TwitterCore.h" ^ 2 warnings generated. 3 warnings generated. 4 warnings generated. Undefined symbols for architecture x86_64: "OBJC_CLASS$_TWTRAPIClient", referenced from: objc-class-ref in TwitterLoginPlugin.o "OBJC_CLASS$_TWTRTwitter", referenced from: objc-class-ref in TwitterLoginPlugin.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

MsXam avatar Jul 11 '19 15:07 MsXam

@MsXam Can you share your project with me so I try to reproduce this error?

eudangeld avatar Jul 11 '19 16:07 eudangeld

Because of the nature of the app, unfortunately it is not possible to share the full app. However - removing all instances of the flutter_twitter_login plugin , the app builds successfully and runs (albeit without twitter authentication - I will try and create a skeleton of the app which demonstrates the issue first and then send over.

MsXam avatar Jul 11 '19 16:07 MsXam

@eudangeld - It would appear the issue is related to also trying to add the plugin flutter_tts to any project that has this twitter plugin. Since Flutter_TTS is a swift plugin, and assuming you have an objective C project that cannot be re-created as a swift project - then adding the Flutter_tts requires a couple of extra steps :

  • Must specify use_frameworks!
  • Must specify a SWIFT_VERSION = 4.x
  • Must add a swift file to your project that will create a bridging header file

Doing the above will get Flutter_tts up and running within your objective c based project. Now lets say you also want to add this twitter plugin to the same project - that is where the issue lies and you get all of the compiler errors shown before.

MsXam avatar Jul 12 '19 16:07 MsXam

@MsXam Sorry for the delay. I managed to figure out the problem. First i updated my repo to use a specific version of Twittetkit and TwitterCore version. After that on Xcode go to target "flutter_twitter_login" and check March-O Type to static library. This works for me using your example code.

Screen Shot 2019-08-09 at 18 34 16

eudangeld avatar Aug 09 '19 21:08 eudangeld

@eudangeld - I still get the problem. Could you share your pubspec so that I can see which twitter plugin/version you are referring to ? Additionally - can you advise if you have TWTR SDK installed and referenced anywhere in your PATH ?

Thank you.

MsXam avatar Aug 11 '19 10:08 MsXam

@MsXam No, i don't have nothing about twitter installed or referenced in my path.

I just redo the whole process again and everything worked perfectly. Using Flutter v1.8.4 on Mac OS X 10.14.5 Xcode Xcode 10.3

Pubspec.yaml

name: App
description: Hello.app

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
dependencies:
  flutter:
    sdk: flutter
  # animated_background: 1.0.4 # Used in test results to provide an animated background when we get a high score
  # circular_reveal_animation: 1.0.2 #used in Themes to display a circle animation when we change theme colours
  # flutter_image: 1.0.0 #Better than Image.network as this has retry ...
  # expandable: 2.2.2+3 #using this now in place of Expansion Panel as Expansion panel disposes of items when it is collapsed.
  # flutter_rating_bar: 1.1.1 # Good simple rating library
  # flip_card: 0.3.0
  # simple_animations: 1.3.0 #Great library for handling animations
  # clippy_flutter: 1.1.0 #Great library to clip any widget
  # flutter_picker: 1.0.11 #A number picker
  # shimmer: 1.0.0 # Simple shimmer effect
  # pull_to_refresh: 1.4.0 #Using this in place of easyRefresh
  # flutter_swiper: ^1.1.4
  # material_design_icons_flutter: 3.2.3695
  # firebase_auth: 0.11.1 #was ^0.8.4+5, changed on 20-May-2019, changed from ^0.6.6 on 19-4-2019
  # google_sign_in: ^4.0.1+3 #changed from  ^3.2.4 on 17th May 2019
  # flutter_simple_dependency_injection: 1.0.0
  # transparent_image: 0.1.0
  
  # flutter_facebook_login: ^1.2.0 #changed from ^1.2.0 on 19-4-2019
  flutter_twitter_login:
    git: git://github.com/eudangeld/flutter_twitter_login.git
    
  # fluttertoast: ^3.0.4 #changed from ^2.2.7   on 19-4-2019
  # cloud_firestore: 0.11.0+2 #was 0.10.1 changed 20-May-2019 #1.changed from 0.9.13+1 on 6-5-2019, 2.changed from ^0.8.2+3  on 19-4-2019
  # intl: ^0.15.7
  # rxdart: ^0.20.0
  # shared_preferences: ^0.4.3
  # image_picker: ^0.5.3+2 #changed from ^0.4.10  on 19-4-2019
  # photo_view: ^0.1.0
  # percent_indicator: 2.1.1 #used in test results screen to show percentage correct
  # keyboard_actions: ^1.0.3
  # flutter_image_compress: ^0.2.3
  # overlay_support: 0.2.0 #For toast messages at top etc
  # flutter_sound: 1.4.1 # was 1.3.1, working & changed 16/May/2019 -  was 1.2.7 which works - 1.2.4/1.3.0 sound in  android doesnt work
  # sentry: 2.1.1
  # audioplayers: ^0.8.0
  # package_info: ^0.4.0+3 #Changed to 0.4.0+3 17-May-2019,  Was 0.3.2 - provides an API for querying information about an application package
  # firebase_storage: 3.0.0 # Was ^2.1.0+1 and changed on 20-May 2019,  #changed from ^1.0.4 on 19-4-2019
  # tuple: ^1.0.2 #simple tuple class
  # connectivity: 0.4.3+1 #1. was 0.3.2 changed on 6-05-2019 - checks if we have wifi or celluar connectivity
  # scoped_model: ^1.0.1 #scoped model rebuilding
  flutter_tts: 0.2.3
  # event_bus: 1.0.1
  # alpha2_countries: 1.0.5 #249 ISO codes with coun try names
  # flutter_svg: 0.12.4+2 # previously using -> 0.12.4+2 #Display SVG's in  flutter , was using : 0.10.3
  # sticky_headers: 0.1.8 #allows us to have sticky headers inside a ListView

  # collection: 1.14.11 #Utility classes to make collections better

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true
  # To add assets to your application, add an assets section, like this:
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.io/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.io/custom-fonts/#from-packages

eudangeld avatar Aug 12 '19 16:08 eudangeld

Hi @eudangeld, thanks for the fork. It compiled! I appreciate it :)

But still I have an issue on iOS device.

Lost connection to device.
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000109feb8db __exceptionPreprocess + 331
	1   libobjc.A.dylib                     0x000000010958eac5 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000109feb735 +[NSException raise:format:] + 197
	3   TwitterKit                          0x0000000107dde8ad -[TWTRTwitter logInWithViewController:completion:] + 649
	4   Runner                              0x0000000101cd61fd -[TwitterLoginPlugin authorize:] + 205
	5   Runner                              0x0000000101cd5cef -[TwitterLoginPlugin handleMethodCall:result:] + 335
	6   Flutter                             0x0000000104d1e69e __45-[FlutterMethodChannel setMethodCallHandler:]<…>

Appreciate your feedback.

codxse avatar Aug 29 '19 16:08 codxse

Hi @codxse thanks for the feedback. This error is probably related to the info.plist. <key>LSApplicationQueriesSchemes</key> <array> <string>twitter</string> <string>twitterauth</string> </array> And <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLSchemes</key> <array> <string>twitterkit-yourAPIKEY</string> </array> </dict> </array>

eudangeld avatar Aug 29 '19 16:08 eudangeld

@MsXam I think I found the problem. Try it out. Check the destination for Twitterkit and TwitterCore before build.

Screen Shot 2019-08-29 at 13 24 40

eudangeld avatar Aug 29 '19 16:08 eudangeld

@eudangeld

thanks for the feedback btw,

here my Info.plist

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>CFBundleDevelopmentRegion</key>
	<string>$(DEVELOPMENT_LANGUAGE)</string>
	<key>CFBundleExecutable</key>
	<string>$(EXECUTABLE_NAME)</string>
	<key>CFBundleIdentifier</key>
	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
	<key>CFBundleInfoDictionaryVersion</key>
	<string>6.0</string>
	<key>CFBundleName</key>
	<string>MyApp (dev)</string>
	<key>CFBundlePackageType</key>
	<string>APPL</string>
	<key>CFBundleShortVersionString</key>
	<string>$(FLUTTER_BUILD_NAME)</string>
	<key>CFBundleSignature</key>
	<string>????</string>
	<key>CFBundleURLTypes</key>
	<array>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>twitterkit-12345678910</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>com.googleusercontent.apps.12345678910</string>
			</array>
		</dict>
		<dict>
			<key>CFBundleTypeRole</key>
			<string>Editor</string>
			<key>CFBundleURLSchemes</key>
			<array>
				<string>fb12345678910</string>
			</array>
		</dict>
	</array>
	<key>CFBundleVersion</key>
	<string>$(FLUTTER_BUILD_NUMBER)</string>
	<key>FacebookAppID</key>
	<string>12345678910</string>
	<key>FacebookDisplayName</key>
	<string>MyApp Name (dev)</string>
	<key>LSApplicationQueriesSchemes</key>
	<array>
		<string>twitter</string>
		<string>twitterauth</string>
		<string>fbapi</string>
		<string>fb-messenger-share-api</string>
		<string>fbauth2</string>
		<string>fbshareextension</string>
	</array>
	<key>LSRequiresIPhoneOS</key>
	<true/>
	<key>UILaunchStoryboardName</key>
	<string>LaunchScreen</string>
	<key>UIMainStoryboardFile</key>
	<string>Main</string>
	<key>UISupportedInterfaceOrientations</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UISupportedInterfaceOrientations~ipad</key>
	<array>
		<string>UIInterfaceOrientationPortrait</string>
		<string>UIInterfaceOrientationPortraitUpsideDown</string>
		<string>UIInterfaceOrientationLandscapeLeft</string>
		<string>UIInterfaceOrientationLandscapeRight</string>
	</array>
	<key>UIViewControllerBasedStatusBarAppearance</key>
	<false/>
	<key>UTImportedTypeDeclarations</key>
	<array>
		<dict/>
	</array>
</dict>
</plist>

as you can see, I have include both LSApplicationQueriesSchemes and CFBundleURLTypes. Again, the app still throwing exception :(

codxse avatar Aug 29 '19 17:08 codxse

Screen Shot 2019-08-30 at 00 12 04

codxse avatar Aug 29 '19 17:08 codxse

@codxse Check your Twitter app settings to Screen Shot 2019-08-29 at 14 48 43

eudangeld avatar Aug 29 '19 17:08 eudangeld

Funny, the only callback I not added yet was YOURKEY://

And it can't be added :'(

I think I have to drop twitter support for iOS.

Screen Shot 2019-08-30 at 01

codxse avatar Aug 29 '19 18:08 codxse

@isoos I forked this repo and updated TwitterKit to 3>. Checkout => https://github.com/eudangeld/flutter_twitter_login In your pubspec add => flutter_twitter_login: git: git://github.com/eudangeld/flutter_twitter_login.git

yes, but I have to change to deploy target version >10.1

houko avatar Aug 31 '19 04:08 houko

I know support for this is discontinued, but I did finally get my iOS deployment to work with this. In case anyone is still interested:

  1. I made sure I updated info.plist to include the CFBundleURLSchemes and LSApplicationQueriesSchemes as detailed here.
  2. I updated the targets for TwitterCore.framework and TwitterKit.framework under Pods as detailed here: https://github.com/roughike/flutter_twitter_login/issues/12#issuecomment-526262923
  3. I renamed ios/Pods/TwitterKit/iOS/TwitterKit.framework/Headers/TWTRKit.h to TwitterKit.h
  4. I updated the reference to the umbrella header "TWTRKit.h" in ios/Pods/TwitterKit/iOS/TwitterKit.framework/Modules/module.modulemap to reference the umbrella header "TwitterKit.h"
  5. In Xcode under Pods > Build Settings > flutter_twitter_login, I updated the iOS Deployment Target for to be iOS 9.0

johnpatrickroach avatar Jul 16 '20 09:07 johnpatrickroach