pusher / pusher/pusher-websocket-react-native

Problem with running on simulator and device arm64 vs x86

Open
#25 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
76
Forks
64
PR merge metrics
No merged PRs in 30d

Description

Hello, I am trying to add Pusher ( v 1.0.2) to my existing react native project (react native version 0.64.1). Though I have trouble doing so. First I get an error when trying to run it on my simulators node_modules/@pusher/pusher-websocket-react-native/ios/PusherWebsocketReactNative.swift:1:8: error: could not find module 'PusherSwift' for target 'arm64-apple-ios-simulator'; found: x86_64-apple-ios-simulator, x86_64,. When I try to run it on the real device I get multiple errors Undefined symbols for architecture arm64: and then a whole list of methods that have this problem. I am using XCode Version 13.0 (13A233). Does anybody know what might cause this issue? I am not running this code on a device with an M1 processor.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with node_modules/@pusher/pusher-websocket-react-native/ios/PusherWebsocketReactNative.swift and reproduce the reported simulator and device builds using React Native 0.64.1, Pusher 1.0.2, and Xcode 13.0. Compare the architecture errors for arm64 and x86_64; done means the project builds successfully for both the simulator and a real device.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native, swift
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.