I am a new user of PyCharm, but have years of experience with MacOS, python and similar. My set up is MacBook Pro M1, 32GB ram, MacOS Sequoia 15.2, and PyCharm Pro latest.
Path to projects leads to an external SSD via usb-c. I have set up some projects, each using python 3.12 in a venv.
The projects work for a while then “lose” a module (module not found). I have gone through every troubleshooting method the built-in AI and web search have come up with.
The first module to disappear is docx2txt. I created a new project and it worked, for a couple of days then the error returned. The docx2txt module could not be found working within or outside of PyCharm. In site-packages there is no “docx2txt” folder, only an “info” folder containing WHEEL and its companions.
For the most recent disappearance, I noticed the package used distutils. I cloned the docx2txt project from GitHub and updated setup.py to use setup tools instead of distutils, and installed it. Python invoked from the command line can import it, but not from PyCharm. When I run the project from PyCharm, the interpreter cannot find dotenv.
I have lost days of work time at this point so I am a bit worried. Advice on what to look at and for would be great.
General
RSS for tagDive into the vast array of tools and services available to developers.
Post
Replies
Boosts
Views
Activity
Hi,
Help!!
So I was in Thailand for a number of years and developed an app over there and signed up as a developer over there. But now I'm in the USA indefinitely and I'm unable to change my payment method. How can I change it?
I called the USA support line twice and no one was able to help me. I tried the Thailand phone number and I'm unable to call from the USA.
Any suggestions?
Thanks!!
Hello. I face such a problem as the fact that the screen does not work after turning on the developer mode. Read more: I'm trying to install an application that is not available in the App Store, and after installing it, I'm required to use developer mode. I turn it on, restart the phone, and the screen lits up in front of me that everything is ready to use the developer mode, and you just need to swipe up. I'm trying to do it, but the screen doesn't respond to my touch at all. I tried to restart the phone, but it didn't help. I reset it to factory settings - it didn't help either. I would like to hear advice from those people who have faced the same problem, or from those who know how to solve it.
Here is my sample code of integration with iCloud
let dbName = "GroceryItem1"
let fieldName = "todoTitle1"
@objc func saveItem(name: String) {
let record = CKRecord(recordType: dbName)
record.encryptedValues[fieldName] = name
database.save(record) { record, error in
if error == nil {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
self.fetchItems()
}
} else {
print("Error saving item: \(error?.localizedDescription ?? "Unknown error")")
}
}
}
Now my code works fine but what i don't understand is when i login to icloud.developer.apple.com why am i able to see the data, why is it not encrypted?
My database is private as well
If i go to record types i can see the recordfield is encrypted as shown in below screenshot
When I try to run my project on the simulator, it tells me there is a bug. It is not in the code I wrote, but I believe in the compiler. It would work perfectly, say the build succeeded, but the phone turns white and stops there. I don't know how to debunk it, what to do!
Picture of what happens with the phone:
Picture of the debugging area:
Hi!
Do the consoles in the App Store Connect differ by country?
In particular, there are mentions on the Internet that in China the publisher can make refunds to users, but there is no such function in the American account.
In System Settings -> General -> Date & Time, there is an option called "Set time and date automatically".
Is there a way to check whether it is enabled programmatically?
在Mac OS 15.2 使用 Xcode 16.2 构建项目时,我遇到了以下错误:
Showing All Errors Only
Prepare packages
Prepare build
Build service could not create build operation: unable to load transferred PIF: The workspace contains multiple references with the same GUID 'PACKAGE:1Y9CU7L2QFO7OX4UJBYP19ZPPL5MJNV3R::MAINGROUP'
Activity Log Complete 2024/12/24, 15:26 0.2 seconds
Saw this info: https://developer.apple.com/documentation/contacts/cncontactstore
But have no idea what I'm doing. This is a pressing matter and I need to determine the date/time contacts were originally created on my icloud account. I have tried the shortcuts method and it merely shows the date they were loaded into whichever device i'm logged in on if they were created a while ago
Hi,
My Ryunjinx emulator's been crashing while I play tears of the kingdom and enter a certain area. Can somebody explain to me why it's crashing?
Process: Ryujinx [54839]
Path: /Volumes/VOLUME/*/Ryujinx.app/Contents/MacOS/Ryujinx
Identifier: org.ryujinx.Ryujinx
Version: 1.1 (1.1.0)
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
User ID: 501
Date/Time: 2024-12-21 15:28:23.9844 -0500
OS Version: macOS 15.1.1 (24B91)
Report Version: 12
Anonymous UUID: 91B1764F-0E70-FDFA-0541-138ABFD9112A
Sleep/Wake UUID: 408A9A03-26A8-4E59-AB8E-66763B38E36B
Time Awake Since Boot: 170000 seconds
Time Since Wake: 7500 seconds
System Integrity Protection: enabled
Crashed Thread: 27
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: Ryujinx [54839]
I know Apple Engineers are busy, It’s great that non-Apple Engineers offer advice and assistance, but I kind of thought there’d be at least a reply from an Apple Engineer on MDM issues?
I have posted about apple watch mdm issues and have got none responses
I’m encountering an issue with the page.selectionForWord(at:) method in my application. This method has stopped working in Mac Designed for iPad mode. The functionality works fine on physical devices such as iPhone and iPad, as well as on Mac, but in this specific mode, the method no longer works, and the application crashes.
It is crucial for me that this functionality works in Mac Designed for iPad mode, as rewriting the entire code for Mac would be too time-consuming, especially considering the size of the application.
Interestingly, a similar method, page.selectionForLine(at:), works perfectly with the same parameters in all environments, including the Mac Designed for iPad mode. This makes the issue even more puzzling.
The issue began after the latest update. The app no longer responds to the page.selectionForWord(at:) method, which causes the application to crash.
I have attached a test app to reproduce the error.
I would like to know if macOS DEXT supports the following networking features: Tx/Rx Multiqueue, RSS, RSC, NS/ARP offload, PTP or packet timestamping and TSN.
I couldn't find relevant documentation for these features in the Apple Developer Documentation.
If they are supported, could you let me know which features are supported and how to find the corresponding official Apple documentation?
Thanks
% eas build --profile development --platform ios
To upgrade, run npm install -g eas-cli.
Proceeding with outdated version.
Found eas-cli in your project dependencies.
It's recommended to use the "cli.version" field in eas.json to enforce the eas-cli version for your project.
Learn more
Found eas-cli in your project dependencies.
It's recommended to use the "cli.version" field in eas.json to enforce the eas-cli version for your project.
Learn more
Found eas-cli in your project dependencies.
It's recommended to use the "cli.version" field in eas.json to enforce the eas-cli version for your project.
Learn more
Found eas-cli in your project dependencies.
It's recommended to use the "cli.version" field in eas.json to enforce the eas-cli version for your project.
Learn more
Loaded "env" configuration for the "development" profile: no environment variables specified. Learn more
Specified value for "ios.bundleIdentifier" in app.json is ignored because an ios directory was detected in the project.
EAS Build will use the value found in the native code.
✔ Using remote iOS credentials (Expo server)
If you provide your Apple account credentials we will be able to generate all necessary build credentials and fully validate them.
This is optional, but without Apple account access you will need to provide all the missing values manually and we can only run minimal validation on them.
✔ Do you want to log in to your Apple account? … yes
› Log in to your Apple Developer account to continue
✔ Apple ID: … XXXXXX@YYYY
› The password is only used to authenticate with Apple and never stored on EAS servers
Learn more
✔ Password (for XXXXXX@YYYY: … **********************
› Saving Apple ID password to the local Keychain
Learn more
✖ Logging in...
Invalid username and password combination. Used ' XXXXX@YYYY' as the username.
› Removed Apple ID password from the native Keychain
? Would you like to try again? › no / yes
Every now and then I get this very frustrating message on Feedback Assistant.
For instance, in FB14696726 I reported an issue with the App Store Connect API. 4 weeks later, I got a reply, asking among other things for a „correlation key and Charles log“. I immediately replied saying that I didn‘t know what those are, and they replied
After reviewing your feedback, it is unclear what the exact issue is.
I pointed out that I had asked a question which was left unanswered, and they replied explaining what the correlation key is. Then I asked again what the Charles log is. They replied
The Apple Developer website provides access to a range of videos covering various topics on using and developing with Apple technologies. You can find these videos on our Development Videos page: http://developer.apple.com/videos.
I opened the link and searched for „Charles“ but there were no results, so I asked to kindly point me to the video answering my question. They replied 3 months later (today):
Following up on our last message, we believe this issue is either resolved or not reproducible with the information provided and will now consider this report closed internally. This Feedback will no longer be monitored, and incoming messages will not be reviewed.
This is not the first time I ask for clarification and get back a message basically telling me that „we won‘t answer any questions you may have and won‘t hear anything you still may have to say about this issue“. They didn‘t even ask me to verify if the issue is resolved or not, like they sometimes do. No, they just shut the door in my face.
I just wanted to share this frustrating experience. Perhaps an Apple engineer wants to say something about it or a developer has had a similar experience?
I've encountered a strange issue with Swift and I wonder if this is a compiler error or if I didn't understand something correctly.
The following sample code shows a weird issue (please ignore that the demo code itself would not make that much sense in this form, it's just the version from a big and more complicated project, where this would make more sense):
class Test {
var data: [String:[String:String]] = [:]
func test() {
let setValue: ((String, String, String) -> Void) = { [weak self] key, id, value in
if self!.data[key] == nil {
self!.data[key] = [:]
}
let oldValue = self!.data[key]![id]
if oldValue == nil {
self!.data[key]![id] = value
}
}
setValue("0", "1", "2")
}
}
When changing the "data" dictionary through the closure within the "test()" function, everything works as expected until the "if" condition where the oldValue is checked against nil. If I set a break point to this condition, the Xcode debugger tells me that oldValue is nil (which is expected), but the code within the if condition is NOT executed. The comparison oldValue == nil should be be true (because oldValue is actually nil), but the compiler seems to assume something else.
But If I do not user "self!" but instead "self?" then it does work as expected and the code within the if condition is executed.
What I am missing here? Is this the correct behavior or a compiler bug?
The iPhone set display and brightness to automatic, the App is placed in the dock column at the bottom of the desktop, and the icon showing the dark mode appears in the light mode. Is this a system problem?
device: iPhone 16 pro max
system version: 18.2
I created a fairplay.cer file using the below commands :
openssl genrsa -out private_key.pem 1024
openssl req -new -key private_key.pem -out request.csr
Here, I manually entered the Country, Organization, etc.
I was supposed to use the below commands to make the same :
openssl genrsa -aes256 -out privatekey.pem 1024
opensslreq-new-sha1-keyprivatekey.pem-outcertreq.csr-subj
"/CN=SubjectName /OU=OrganizationalUnit /O=Organization /C=US"
Owing to this, I am unable to create a .p12 file through Keychain Access. I thus want to generate a new fairplay.cer file for Fairplay 4.x. I want to revoke the certificate in order to generate a new one (as it has a limit of 1 certificate for Fairplay)
Requesting developer support from Apple. Have raised multiple requests over the past 4 days.
I'm creating a clean project in Expo without Typescript. I run the command “npx expo prebuild” normally, but when I run the command “npx expo run:ios” I get the error “PhaseScriptExecution [CP-User]\ Generate\ Specs /Users/bogdanlyamzin/Library/Developer/Xcode/DerivedData/testapp-gbckopevfunjmtanprbgmojuogrr/Build/Intermediates. noindex/Pods.build/Debug-iphonesimulator/ReactCodegen.build/Script-46EB2E0001C6B0.sh (in target 'ReactCodegen' from project 'Pods')”. Can you please tell me how to fix it?
Translated with DeepL.com (free version)
I am working on a hobby project to develop my own Bluetooth peripheral. The platform for this peripheral is a Espressif ESP32-based TinyS3 from Unexpected Maker. I have defined the bluetooth device & service information using custom UUIDs. Using nRF Connect or Light Blue mobile applications I can discover and connect to my device. I receive confirmation of this BLE connection and modifications to the my BLE Service from my code on my TinyS3.
I am attempting to write a custom software program that uses the onboard Mac Bluetooth hardware to detect this device. I am technically using Qt's Bluetooth infrastructure via PySide6 [python].
Despite being able to see my device in the mobile BLE applications, my software as well as the Mac Bluetooth System Services does not detect my BLE device.
I am broadcasting advertising messages at a 250ms rate, and since they are findable by these mobile applications, I am wondering if MacOS has specific requirements for advertising data for what it considers as a "legitimate/ connectable" device.
Any help would be greatly appreciated. Thank you!