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

Compilation error in SocketRocket in Xcode 14.3 #1591

Closed
lawrence-forooghian opened this issue Mar 31, 2023 · 4 comments · Fixed by #1750
Closed

Compilation error in SocketRocket in Xcode 14.3 #1591

lawrence-forooghian opened this issue Mar 31, 2023 · 4 comments · Fixed by #1750
Assignees
Labels
bug Something isn't working. It's clear that this does need to be fixed. build Relates to the tooling used to build or release the contents of this repository.

Comments

@lawrence-forooghian
Copy link
Collaborator

This line of SocketRocket code is giving an error "A function declaration without a prototype is deprecated in all versions of C" in Xcode 14.3.

@lawrence-forooghian lawrence-forooghian added bug Something isn't working. It's clear that this does need to be fixed. build Relates to the tooling used to build or release the contents of this repository. labels Mar 31, 2023
@sync-by-unito
Copy link

sync-by-unito bot commented Mar 31, 2023

➤ Automation for Jira commented:

The link to the corresponding Jira issue is https://ably.atlassian.net/browse/SDK-3485

@sAurangzaib
Copy link

Greetings,
I'm also facing an issue "dyld: Library not loaded: @rpath/Ably.framework/Ably" and Reason: image not found
This happens when running the app either on the Simulator or a Real device.
Xcode version: 14.3.
I really appreciate your support.
Thanks in advance

@l-szyszkowski
Copy link
Contributor

l-szyszkowski commented Apr 13, 2023

This line of SocketRocket code is giving an error "A function declaration without a prototype is deprecated in all versions of C" in Xcode 14.3.

I assume it's not just one line, I'm facing the same error when I'm trying to build ably framework with Xcode 14.3
CleanShot 2023-04-13 at 13 48 39@2x
possible solution

These lines need to be fixed:

NSString *generateNonce() {

__attribute__((used)) static void importCategories()

void import_NSRunLoop_ARTSRWebSocket() { }

void import_NSURLRequest_ARTSRWebSocket() { }

@lawrence-forooghian
Copy link
Collaborator Author

Greetings,
I'm also facing an issue "dyld: Library not loaded: @rpath/Ably.framework/Ably" and Reason: image not found
This happens when running the app either on the Simulator or a Real device.
Xcode version: 14.3.
I really appreciate your support.
Thanks in advance

Hi @sAurangzaib — would you be able to raise a separate issue for this, please?

@lawrence-forooghian lawrence-forooghian self-assigned this May 15, 2023
lawrence-forooghian added a commit that referenced this issue May 15, 2023
The error was "A function declaration without a prototype is deprecated
in all versions of C".

Resolves #1591.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. It's clear that this does need to be fixed. build Relates to the tooling used to build or release the contents of this repository.
Development

Successfully merging a pull request may close this issue.

3 participants