Comments (11)
Undefined symbols for architecture arm64:
"_$s18SwiftPhoenixClient7ChannelCMn", referenced from:
_symbolic _____Sg 18SwiftPhoenixClient7ChannelC in AuthenticateChannel.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
from swiftphoenixclient.
@davidstump can you please take a look?
from swiftphoenixclient.
@timetraveler90 I don't have access to an M1 and am not seeing this behavior in my project using 5.2.1. What version of Xcode are you on?
Also, 5.2.0 changed the signature of socket.onError
and depending on how you have it implemented, it may or may not be the cause? Are you calling socket.onError
? and if so could you share that snippet?
from swiftphoenixclient.
It's Xcode Version 14.2 (14C18).
For example:
protocol ConnectionManagerProtocol: AnyObject {
var connectionManager: ConnectionManager! { get set }
var channel: Channel? { get set }
var channelName: ChannelName! { get set }
var state: ChannelState { get set }
init()
}
with this block of code, I am always getting that kind of error, and when I comment this line:
var channel: Channel? { get set }
the error is gone, which puzzles me the most. I do not see the reason why this line makes this error.
from swiftphoenixclient.
Yeah I'm at a loss here. How are you including the library? pods? package manager? I'm assuming pinning the version to 5.1.0 resolves this? I want to say that somehow search paths got mixed up
from swiftphoenixclient.
I am importing the lib as a swift package, tried also resolving the cache and changing back the version to 5.1.0 but I am ending up with the same error all over again. Currently kinda clueless why this happens.
from swiftphoenixclient.
Is it giving you the same error on 5.1.0 as well now?
from swiftphoenixclient.
It's definitely not version related, I have tried to change the version and the same message occurs.
The reason why I thought it was the version related is that at that time when I had 5.1.0 I had only imported there, without referencing or instantiating anything from the lib, but when I added mode code and updated the lib to 5.2.1 this issue started to happen.
I have just now tried an even older version but it's the same behavior definitely. Also, one of my colleagues tried it on his mac machine, which is not M1, and he has the same issue.
from swiftphoenixclient.
Resolving this issues can sometimes be like shooting in the dark. I would try removing the library dependency, commenting out any references and then cleaning, resetting caches, and rebuilding and get the project to build successfully without SwiftPhoenixClient. Then after that re-add the dependency, build, uncomment references, build, etc.
from swiftphoenixclient.
Well, I found the solution, and the issue was on my side absolutely, there was nothing to do with the lib itself.
I realized where was the issue only when I changed the approach from SPM to Pods, and then I realised that the part of the code where I want to use the lib is actually a framework on my project and it wasn't visible even tho it's added in the pods, so I switched back to SPM and added SwiftPhoenixClient to 'Link Binary With Libraries' permission in order to actually have it.
SPM gave me 'fake hope' that I can actually use the lib, which wasn't the case with Pods, when I tried to import the SwiftPhoenixClient. On Pods I was getting not found error.
Sorry for the false alarm guys, please close this ticket. @dsrees
from swiftphoenixclient.
💯 awesome, glad you got it resolved! Please reach out in the future if you have any other issues.
from swiftphoenixclient.
Related Issues (20)
- Move out additional Rx and Starscream solutions to separate Swift Packages HOT 9
- Question: Behaviour when remote kills connection. HOT 3
- How to configure heartbeat? HOT 4
- Problems with connections closing and not re-establishing HOT 4
- Access raw message data HOT 2
- Crash on channel connection HOT 1
- `Channel` `bindingsDel` array is not thread safe and appears to rarely cause a crash HOT 1
- Problems with connections on WatchOS 9 HOT 4
- Question: How do I know a socket was successfully opened? `isConnected` seems to say whether or not the handshake took place, not whether the socket was actually opened. HOT 13
- SSL Pinning support after StarScream removal HOT 3
- Crash in `Channel.swift` `off()` function HOT 2
- Crash in `Socket.append<T>(callback:to:)` function HOT 5
- Automatic success for `Channel.leave()` attempts when offline HOT 3
- Sending binary data in a message HOT 3
- Crash on Channel initialization HOT 4
- Version 5.3.1 is unavailable via cocoapods HOT 1
- Adding a certificate authentication request HOT 1
- Socket.sendHeartbeat() EXC_BAD_ACCESS (KERN_INVALID_ADDRESS) HOT 2
- What are the payload size limits? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftphoenixclient.