-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use of unresolved identifier 'ARTPush' #595
Comments
Hi! Sorry but I can't reproduce the problem you describe. Are you doing |
@shantamg I think you're missing the |
(Ups 😄 @tcard almost at the same time) |
I actually did try that and got "No such module 'Ably'". I have Ably in the Podfile, I did I have also tried with and without |
@shantamg Could you share the |
|
@shantamg and do you open the generated |
Yes, I do.
Next thing I will try is setting up a fresh vanilla app and trying with
that. Will do this evening.
…On Sun, Apr 30, 2017 at 3:24 PM Ricardo Pereira ***@***.***> wrote:
@shantamg </~https://github.com/shantamg> and do you open the generated
.xcworkspace file? (see
https://guides.cocoapods.org/using/using-cocoapods.html#installation)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#595 (comment)>, or mute
the thread
</~https://github.com/notifications/unsubscribe-auth/AAQC4oXGmC1uaJ8liliDehPCIKZOBs7aks5r1QoZgaJpZM4NK5sy>
.
|
Sorry for the delay. I tried making a fresh xcode app, did No such module 'Ably' Xcode Version 8.3.2 (8E2002) |
@shantamg Could you send us that fresh project please? |
@shantamg Sorry for the delay. I tried your example and it's working. You need to build it once so that the library becomes available. |
@shantamg can you confirm if you build it it works for you? |
Ok, that makes sense. I did a build and now Ably loads, but I'm not sure where to find a working example. The code I pasted above in the first comment gives me errors:
Sorry if I'm still missing something. Just looking for a simple working example. |
@shantamg Our fault! Those |
Awesome, thanks. Will give that a try in a few hours.
…On Thu, May 25, 2017 at 4:51 AM Toni Cárdenas ***@***.***> wrote:
@shantamg </~https://github.com/shantamg> Our fault! Those optional
shouldn't be there, and the realtime label wasn't really available. It is
now, so if you run pod update Ably on your project then it should work.
I've removed optional from the docs snippet too. Thanks for the heads up!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#595 (comment)>, or mute
the thread
</~https://github.com/notifications/unsubscribe-auth/AAQC4jVO72hgVs9vE3F4FpvtEeWcqw9lks5r9WtLgaJpZM4NK5sy>
.
|
Still not quite there.
Can you link to the docs you mentioned updating? The page I linked to in the first comment is the same as before. For the sake of completeness I'll post all of the other warnings I'm seeing: Swift Compiler Warning: Well, here's an image of the rest of them. msgpack and SocketRocket semantic issues and Ably Lexical or Preprocessor Issue: Thanks for looking into it and sorry for the trouble! |
This is a syntax error on your code.
This is not an error, it's a warning. You can ignore it for now but eventually you'll have to set the options you want, at least your API key or other means of authentication in order to use Ably.
Thanks, should be fixed now. Also the ARTMsgpackEncoder warning. About warnings on our dependencies, I'm afraid we can't do much about them. So you should just ignore them. |
Thanks, that's great. The only issue I'm still having is the "expected declaration". I'm not sure where the syntax error is. I have copied the code directly from the documentation. |
Ok I figured it out -- there are zero width spaces in the code examples in the docs. On the page where I got the code if you inspect the source of any code block, the blank lines look like this:
That |
@shantamg urr, that's a bit of an issue as we use CodeMirror to format the code. I'll see if the CodeMirror guys have any advice on this one as I am not sure what to do other than to hack a fix which replaces these zero width spaces with something else. We can do that easily, but I expect there's a good reason behind the use of these zero width spaces. See codemirror/codemirror5#4776 |
Thanks! |
I installed for ios per the instructions at Github PR 582 using CocoaPods.
I tried adding this to the AppDelegate (using the Swift instructions from this page):
but it seems like Ably is not loading. In Xcode I get lots of errors including "Use of unresolved identifier 'ARTPush'" and "Use of undeclared type 'ARTRealtime'".
I know this is vague, but I'm not sure what else to include here. Can someone help me get started?
The text was updated successfully, but these errors were encountered: