GithubHelp home page GithubHelp logo

Comments (12)

marcinwasowicz avatar marcinwasowicz commented on May 24, 2024 1

Hi @denniswon !
Changing group.app.comm to group.app.comm.dev was a right step, but the only place where you should keep group.app.comm is _getLockName method in TemporaryMessageStorage.mm. The reason for that is this method returns name for a semaphore. OS provides an upper limit on the length of the name of the semaphore and looks like adding .dev infix makes it exceed this limit. Additionally I recall that adding group name prefix for a semaphore name wasn't hard requirement, but rather suggestion by apple. So you should keep the changes you already did, but just make sure that _getLockName method still uses group.app.comm prefix without .dev. Let me know if it solves your problem!

from comm.

Ashoat avatar Ashoat commented on May 24, 2024

I'm guessing you're missing some sort of dependency. The Nix environment might be easier to set up... we might have missed some important step in the "mainline" (old) dev environment instructions.

I think Xcode can show you more details on how the custom build command failed if you check the build logs (icon on the right here, under "Run Comm"):

Screenshot 2023-01-13 at 8 31 11 PM

from comm.

atulsmadhugiri avatar atulsmadhugiri commented on May 24, 2024

If you're unable to see the full build logs in Xcode, you can try the following:

xcodebuild -workspace Comm.xcworkspace -scheme Comm -destination generic/platform=iOS

from native/ios.

I have a hunch it might be related to native_rust_library's dependency on protoc (protocol buffer compiler) via the prost crate... but seeing the build logs would help narrow things down.

(As an aside, can you specify whether you're on an arm64 or x86 Mac?)

from comm.

denniswon avatar denniswon commented on May 24, 2024

Thanks @Ashoat @atulsmadhugiri I tried using nix develop instead, but now, I am getting

2023-01-15 18:57:38.186539+0900 Comm[12851:11085555] [unspecified] container_create_or_lookup_app_group_path_by_app_group_identifier: client is not entitled
libc++abi: terminating with uncaught exception of type std::runtime_error: Failed to resolve database path - could not find groupUrl
Message from debugger: Terminated due to signal 6

This happens both in the physical device or simulator. Seems like it is having an issue with finding the sql db of the device.

Any idea? Thanks again for answering my questions.

from comm.

denniswon avatar denniswon commented on May 24, 2024

Screenshot 2023-01-17 at 8 50 21 AM

I tried updating the app group name manually in the code to use the updated new app group name (from `app.comm.group` to `app.comm.group.dev`) but now that causes this error:
2023-01-16 16:14:07.716829+0900 Comm[49862:12453836] COMM: Failed to acquire lock. Details: File name too long
2023-01-16 16:14:07.739673+0900 Comm[49862:12453836] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x600001b53c00> F8BB1C28-BAE8-11D6-9C31-00039315CD46
EXDevLauncher/ExpoDevLauncherAppDelegateSubscriber.swift:12: Fatal error: Cannot find the keyWindow. Make sure to call `window.makeKeyAndVisible()`.
2023-01-16 16:14:07.949019+0900 Comm[49862:12453836] EXDevLauncher/ExpoDevLauncherAppDelegateSubscriber.swift:12: Fatal error: Cannot find the keyWindow. Make sure to call `window.makeKeyAndVisible()`.

AppDelegate file does seem to be calling window.makeKeyAndVisible already, so don't think what I tried here is a valid thing to do.

Could someone from the team please help me out here? Trying to get the ios app running on either the simulator or the phone so that I can try out the app.

Thanks cc: @Ashoat @atulsmadhugiri

from comm.

Ashoat avatar Ashoat commented on May 24, 2024

Hmm... I wonder if you need to create an App ID with Apple and register that group name. Do you have an Apple Developer account?

from comm.

denniswon avatar denniswon commented on May 24, 2024

@Ashoat I do and I did create an App ID on the dev console on apple, with app group capability. But did not register the group name. Maybe that's something that I missed.

from comm.

denniswon avatar denniswon commented on May 24, 2024

Screenshot 2023-01-17 at 3 19 08 PM

Actually, it is auto registered from xcode.

from comm.

denniswon avatar denniswon commented on May 24, 2024
2023-01-17 23:02:01.916538+0900 Comm[61163:14132061] COMM: Failed to acquire lock. Details: File name too long
2023-01-17 23:02:01.958319+0900 Comm[61163:14132061] [plugin] AddInstanceForFactory: No factory registered for id <CFUUID 0x60000133db40> F8BB1C28-BAE8-11D6-9C31-00039315CD46
EXDevLauncher/ExpoDevLauncherAppDelegateSubscriber.swift:12: Fatal error: Cannot find the keyWindow. Make sure to call `window.makeKeyAndVisible()`.
2023-01-17 23:02:02.232845+0900 Comm[61163:14132061] EXDevLauncher/ExpoDevLauncherAppDelegateSubscriber.swift:12: Fatal error: Cannot find the keyWindow. Make sure to call `window.makeKeyAndVisible()`.
Message from debugger: The LLDB RPC server has crashed. You may need to manually terminate your process. The crash log is located in ~/Library/Logs/DiagnosticReports and has a prefix 'lldb-rpc-server'. Please file a bug and attach the most recent crash log.

Screenshot 2023-01-17 at 11 06 04 PM

from comm.

Ashoat avatar Ashoat commented on May 24, 2024

I wonder what the filename that is too long is... could that be something here? Worth adding a breakpoint there to see if it triggers

from comm.

denniswon avatar denniswon commented on May 24, 2024

@Ashoat Thanks for the response. Now I am trying again with the breakpoint as you linked above, and also I changed all places where it was using hardcoded "app.comm" string to the new bundle id "app.comm.dev" that I am using for dev.

Screenshot 2023-01-18 at 9 00 14 AM

The breakpoint does get hit, but after continuing, the same error occurs.

from comm.

vdhanan avatar vdhanan commented on May 24, 2024

Closing, but feel free to re-open if you have any more questions!

from comm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.