aksonov / react-native-xmpp

XMPP library for React Native (iOS and Android native support)
BSD 2-Clause "Simplified" License
308 stars 98 forks source link

Throws "Expected a type" on enum object "OMEMOModuleNamespace" #99

Open AAGSICON opened 6 years ago

AAGSICON commented 6 years ago

Hi @aksonov and @robbiehanson,

I followed the given instructions on my custom project. I am getting the following error on building the application on XCODE.

screen shot 2018-06-05 at 5 50 40 pm

But this error gone when I imported the missing file on the following file given below.

screen shot 2018-06-05 at 5 55 40 pm

But now I am getting following errors on the Enumerated objects on the method declarations on the following file give below.

screen shot 2018-06-05 at 2 16 15 pm

aksonov commented 6 years ago

Please try older XMPPFramework 3.7 (my forked version that works with XCode 9.3+)

On 5 Jun 2018, at 10:56, AAGSICON notifications@github.com wrote:

I followed the given instructions my custom project. I am getting the following error on building the application on XCODE.

https://user-images.githubusercontent.com/31310379/40965668-fc92ca5a-68cb-11e8-9f41-3924894706ab.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aksonov/react-native-xmpp/issues/99, or mute the thread https://github.com/notifications/unsubscribe-auth/ABQpcaD2GhC37TqxQhJJyjoX0n9CcsMrks5t5keqgaJpZM4UaadO.

AAGSICON commented 6 years ago

I tried with 3.7 earlier. But still getting error : 'XMPPFramework.h' file not found

aksonov commented 6 years ago

Have you added this module to Podfile?

6 июня 2018 г., в 11:13, AAGSICON notifications@github.com написал(а):

I tried with 3.7 earlier. But still getting error : 'XMPPFramework.h' file not found

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

AAGSICON commented 6 years ago

My podfile is as follows

platform :ios, '9.3'

target 'XmppDemo' do

use_frameworks!

pod 'XMPPFramework', '~> 3.7.0' pod 'KissXML', :git => "https://github.com/aksonov/KissXML.git", :branch => '5.1.4'

end

aksonov commented 6 years ago

You have to add forked XMPPFramework AND this module pod

6 июня 2018 г., в 11:22, AAGSICON notifications@github.com написал(а):

My podfile is as follows

platform :ios, '9.3'

target 'XmppDemo' do

use_frameworks!

pod 'XMPPFramework', '~> 3.7.0' pod 'KissXML', :git => "https://github.com/aksonov/KissXML.git", :branch => '5.1.4'

end

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

AAGSICON commented 6 years ago

How to add forked XMPPFramework

skumarm commented 6 years ago

I already have this issue.

Solved by following way

  1. Manually placed the folder RNXMPP on my project
  2. Then install XMPPFramework, only via pod

Now it works. The issue is related to the RNXMPP package.