Comments (12)
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.
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"):
from comm.
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.
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.
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.
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.
@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.
from comm.
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.
from comm.
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.
@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.
The breakpoint does get hit, but after continuing, the same error occurs.
from comm.
Closing, but feel free to re-open if you have any more questions!
from comm.
Related Issues (20)
- Personal threads HOT 5
- Make it possible to see history of threads you have left
- Prevent blocked users from messaging each other HOT 6
- Redesign friend/block list
- Replace ComposeThread HOT 8
- Private thread
- Security Issue: Request for contact HOT 1
- Improve search results view
- Deal with iOS 14's limited photo library permissions HOT 1
- Redesign calendar HOT 1
- Support native share dialogs
- Replies for non-text messages
- Update robotext message when thread type is changed HOT 2
- Handling multiline select on web
- Sidebar inline replies number HOT 2
- Header oscillates when opening emojis on keyboard HOT 1
- Thing
- pod install fails with use_expo_modules!
- please stop paging me with @ mentions HOT 1
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 comm.