Post not yet marked as solved
IDE: Xcode
I have the following code in my program sending this command in terminal. Program hangs up on this line and the debug area shows error "no module named pyvisa_py".
(power_max.py import the pyvisa module)
Then I try this command in terminal directly and the module pyvisa_py, installed already, can be found. The python file can be executed successfully.
How could I make Xcode identify the pyvisa_py module?
[cmd appendString:@“python3 /Users/shared/power_max.py”];
[cmd appendString:[Paremeter_IP stringValue]];
[cmd appendString:@" > /users/Shared/CMW.txt"];
system([cmd UTF8String]);
Post not yet marked as solved
Xcode 13.4.1
Last Week
Reviewed my applications UI last week in Xcode: everything was fine.
This Week
Opened it this morning, and my Storyboards (xib files) no longer display content.
Directly under the file path view, there is the following:
An internal error occurred. Editing functionality may be limited. Report a Bug
What I've Tired
Cleaning the build folder, no change.
Quit Application, ReOpened, no change.
Quit Application, Deleted "Derived Data" folder, ReOpened, no change.
Clicked "Report a Bug" application was unresponsive, had to force quit, no change.
Nothing Changed
I've not made any code changes in over a week. Completely perplexed to see this behavior. The following shows the Xcode window and how StoryBoards are appearing.
I'm not panicking, yet. That will come next week when I begin to make updates.
Post not yet marked as solved
I have an older MacOS app where in IB (no storyboards) I created a main window/view and a progress window/view in one xib in response to a menu item. In a new MacOS app (using much of the code from the older menu item code), in IB storyboard I have a window controller/window/view/subviews in the storyboard, but I cannot seem to find a way to also include in the storyboard a progress panel (to hook up to an outlet in the view controller).
I can create the same window/panel/progress bar that I had in the older app in a separate xib. So I suppose (in objective c) I can just load the xib???
So, is there a better way to implement a separate progress window(s) in a storyboard and hook them up to outlets? I think I'm missing something
And what happened to NSPanels?
Post not yet marked as solved
Hello Angels,
I downloaded XCode 13.4.1 yesterday. To learn how to create Apple Apps. There should be a storyboard file. That enables users to create labels and buttons etc.
However, the feature is not present. However, it should be part of the application. What are my options? What should I do?
I uninstalled the application and then reinstalled it. This did not fix the problem.
Post not yet marked as solved
Hello,
I have a GL6110 USB transmitter.
I am using a macOS 12.4 computer and I managed with coolterm to send and receive SMS
Here are the commands I used
receive text messages
AT+CMGL="ALL" then enter
Send a text message
AT+CMGS="+33xxxxxxxx6" and enter
my text and CRTL+Z
What I'm trying to do now is to read or send my SMS not by CoolTerm BUT by Xcode
Is it possible to configure GL6110 on Xcode and go through Xcode to send/receive my SMS?
Thanks
Post not yet marked as solved
I am developing an app to run on iOS 12.4 or newer using Xcode 12.3 on MacOS Catalina. On my screens I have a number of navigation bar buttons which have a system icon specified as well as text in Interface Builder. When running on an iOS 14.3 simulator, the bar button icons appear but on an iOS 12.4 simulator (and an iOS 12.4 device) the icons do not appear and only text is shown. The buttons still work OK on iOS12.4. How can I make system icons appear in Navigation bar button items in Xcode 12.4?
Post not yet marked as solved
When I connect the iPad with my MacBook pro the iPad is not visible on the device and simulator option in Xcode. When I connect the device it just blinks and disappeared from the device and simulator option. I check the photos apps there I am able to see the device but in the Xcode, the device is not showing.
Can anyone suggest to me how to fix this?
Thanks in advance.
Post not yet marked as solved
Client Info
Iphone 13
FTApp 1.3.1 (com.fittime.ftapp; build:62; iOS 14.2.0) Alamofire 5.4.4
Post not yet marked as solved
Just revisiting Xcode 13.4 in some time for a MacOS Automator Action and literally cannot find, Google or Developer support, how parameters (a tab in Automator Info for the target) can be linked to UI objects in a xib (not SwiftUI) or how to access those parameters in Objective C code.
I cannot even find Xcode documentation on this topic in Developer at https://developer.apple.com/documentation/xcode and my search for "Xcode parameters" does not help.
So, could someone please direct me to where this is covered in documentation?
Post not yet marked as solved
Show-message function got error: Thread 1:EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
following is the function.
-(void)showMeg:(NSString *)str { dispatch_sync(dispatch_get_main_queue(), ^{ [[[Memo1 textStorage] mutableString]appendString:[NSString stringWithFormat:@"%@", str]]; [Memo1 scrollRangeToVisible:NSMakeRange(Memo1.string.length, 0)];//auto scroll down }); }
I called it in other .m file like the following.
-(void)showMeg:(NSString *)str { dispatch_sync(dispatch_get_main_queue(), ^{ [[[Memo1 textStorage] mutableString]appendString:[NSString stringWithFormat:@"%@", str]]; [Memo1 scrollRangeToVisible:NSMakeRange(Memo1.string.length, 0)];//auto scroll down }); }
Post not yet marked as solved
Hey all, I'm trying to create a Xamarin.Mac app, and am using xcode for it. I've just created the app and tried to click run in xcode, and got the error "Undefined symbol: _main"
All I've done is added some icons, a button, and a label. No clue what could be causing this error, so any help is appreciated.
Post not yet marked as solved
Does anyone know why I get the following error in Interface Builder when I try to refresh a view created in a Swift Package?
Build Failed ❌
The built product "Users/*MyName/Library/Developer/Xcode/DeriverData/*PackageBuildDirectory/Build/Intermediates.noIndex/IBDesignables/Products/Debug-iphonesimulator/*PackageName" does not exist in the file system. Make sure your built products contains either an application or a framework product."
I can trigger this warning simply by creating a new package, marking a blank UIView as IBDesignable, and bringing it onto a storyboard in the same package.
I saw someone suggest that this was happening when they had their project directory on the macOS Desktop which was syncing to iCloud, but my project is on the local HD.
I also have a similar issue with Images. I can add an image to my assets catalog, create a UIImageView in Interface Builder, and select it in the image drop-down menu. But when I run the application I get the error:
Could not load the "ImageName" image referenced from a nib in the bundle with identifier "com.myCompany.MyApp"
It's so strange that Xcode is able to show me the image in Interface Builder, but then fail to retrieve it at runtime. I can load the asset just fine from code.
I posted this issue on Stackoverflow here
https://stackoverflow.com/questions/72155202/assets-from-swift-package-shows-runtime-warning-could-not-load-image-reference?noredirect=1#comment127492702_72155202
My other option was to build this as a Framework project ("old school") but I've never actually attempted to do this. I'm a bit concerned about binary size since there are numerous image assets. Im also not sure how git work with embedded frameworks. Would be great to have this app as one repository.
Any help would be greatly appreciated.
:-)
Using Xcode 13.2.1
Post not yet marked as solved
I need a simple program in storyboard that can execute a command after pressing a button. Is this possible?
Post not yet marked as solved
I am trying to build a new ios app (Clicker), which is an educational app for universities.
I want to build it using SwiftUI NOT Storyboard, and its features are:
Login and register with Firebase.
Students can put their attendance when they are asked by the instructor.
The instructor can make a pop quiz, and he/she can choose the quiz type: Multiple Choice/Polls/Yes or No.
The quiz results will be shown on the instructor's account.
And other features.
So, what should I learn to make a progress with it?
If something is not clear, please reply to this question.
Hi, Every time I try to open my Main.storyboard file I keep seeing this error. If someone could help, it would be greatly appreciated.
Post not yet marked as solved
I recently migrated to macOS Monterey to build my macOS app. After building the app in 12.3, the users have started to experience mysterious crashes related to view layout.
The first one was somehow related to NSScrollView endlessly resizing itself between two width values, and I figured it could have something to do with scroll bar sizing, but found no apparent fix.
Crashing on exception: The window has been marked as needing another Display Window pass, but it has already had more Display Window passes than there are views in the window.
I circumvented the issue with some duct tape, but ended up with another layout exception on other users' systems:
Crashing on exception: The window has been marked as needing another Update Constraints in Window pass, but it has already had more Update Constraints in Window passes than there are views in the window.
It's very hard to debug this, because the bug seems to be very system-specific.
However, by intense googling, I've seen that Safari and Xcode have also suffered from the exact same crash, but I've found no information on how they might have been fixed.
I'm starting to suspect that there is something principal that has been changed within view layout routines macOS 11/12 that I'm completely missing. Does anyone have any experience with such issues, and how to start digging deeper?
Post not yet marked as solved
There are a lot of other questions in the forums like this but they are so old that I thought I should start a new one.
I want to add an outlet connection from my file's owner to an NSButton in a .xib. I can't do it.
The NSButton is declared as an IBOutlet NSButton *myButton; in my .m file. In my .xib the button's class is declared as NSButton.
When I control drag from the NSButton in Interface Builder to the File's Owner's New Referencing Outlet well in the pop-up or the File's Owner in Placeholders nothing happens. There are three other IBOutlets that were in my .m file that are connected. Since I upgraded to XCode 13.3 I can't connect the fourth IBOutlet in my .m file to objects in my .xibs.
This has always been easy but now it can't be done in XCode 13.3. I spent a LONG time trying to do this but I can't.
The Help documentation doesn't even begin to resemble what I actually see in XCode at all, starting with:
"In Interface Builder, open the assistant editor (choose View > Assistant Editor > Show Assistant Editor)". What? There's no such menu item in the View menu.
Is this a new super horrible bug in XCode? Should I file a bug report? Does anyone else have this problem?
Post not yet marked as solved
There are two places within Xcode (version 13.3) where I can't drag and drop anymore.
Trying to move a file to a Group. I have tried just clicking and dragging, control-click, option-click, command-click, none work. Instead of dragging the file, the cursor just moves without the selected/highlighted file and highlights whatever file or group it is hovering over.
Trying to drag a button to a View Controller to make a connection or to code to create an outlet. Instead, a popup window appears with three rows, each with corresponding icon, two lines each (title and object type): View Controller, View, Button. (I can't figure out how to capture that screen since I am already holding the control key and mouse button (track pad) but here is a photo.
This popup now appears (whether I am holding the control, option, or command key) rather than the blue line:
Post not yet marked as solved
In Interface Builder, setting the constraints for a UI element (let's say a button) doesn't change if I make the aligment proportional to the Safe Area or proportional to the Superview.
I have a button which I set its horizontal alignment to be:
I have another button which I set its horizontal alignment to be:
Both buttons end up being aligned horizontally:
I would have expected the button aligned to the Safe Area to be shifted to the right as the Safe Area's leading edge is shifted to the right from the one of the Superview.
I'm probably missing something but can't quite understand what is going on here.
The problem is that heights and widths proportional to the Safe Area are honored, so the size of UI elements does change if you make them proportional to the Safe Area or to the Superview. So when you try to layout something with Safe Area proportional heights and widths, and also use Safe Area proportional horizontal and vertical placements, UI Elements don't line up for iPhones with a notch. They kind of lineup for devices like iPads and iPhones with no notch where the Safe Area is very close to the Superview area.
Post not yet marked as solved
Hello
Please help me solve the problem
My application has been rejected because of my relationship with Iran, but I live in Liverpool, England and run an official charity there. This program is a subset of my charity and my program has nothing to do with Iran and politics. And made for the needy in the UK
In addition all information host and server are from the UK.
I have already sent all the official documents to the Apple Store to prove this, but again my application was rejected due to a legal problem.
Please contact me if anyone can solve my problem.
Thank you
david golabli developer app tanagers
phone: +447308006602