I am getting this error after packaging the xyz.app however the xyzzy.app runs well and good in my Mac - MINI whenever I try to package and install I am getting this error. in the package contents of the application I am able to see FlutterMacOS.framework
Can you help me with it
General
RSS for tagDive into the vast array of tools and services available to developers.
Post
Replies
Boosts
Views
Activity
Hi, I am currently trying to install and run a watchOS App I developed in Xcode on an Apple watch series 9. I would like to add the Apple watch as a registered device to a developer account. I need to provide the device name and the device ID or UDID to register the Apple watch. I am not sure how I can get the UDID for the Apple watch. I would appreciate your help with information on how I can get the UDID for the Apple watch and if the watch needs to be registered with a developer account for installing and running a watchOS app from Xcode on the Apple watch. Thank you.
Hello,
We have an app built with a hybrid framework called NativeScript, and deployed on iPad devices. Since the update to iOS 17.4, we're experiencing crashes that seem to be caused by an out of memory problem.
I was able to retrieve crashes reports in .ips format that seem to confirm the out of memory hypothesis, but by lack of experience and knowledge in iOS environment, I couldn't find the origin of the problem yet.
One of the most difficult point is that we haven't been able yet to reproduce the bug at home, even with the concerned tablets.
Our app crashes randomly on customer's sites, this is manifested by the app getting frozen, with graphic artifacts in the form of vertical gray stripes onto the whole screen. For now, the remedy is to reboot the tablet remotely.
I've tried to launch the app on a problematic tablet in profiling mode with Xcode, with the Leaks tools from Instruments, but even after navigating in the whole app, I can't see any suspicious growth in memory usage.
Is there someone here that can help me to read the .ips file to understand and isolate the cause of the problem ?
Thanking you by advance.
P.S : I formatted ips file in valid JSON format
The root plist is not reading variables after upgrading my iPad to iOS 18 beta. Following the upgrade, the application-specific settings of a native app become empty. Previously, multiple variables were visible.
I've been working on a Swift PM wrapper for the libtiff library, which I installed on my Mac via Brew. So far so good. But I just tried adding it to my visionOS project. and it complained that it was trying to link against a library built for macOS:
building for 'visionOS-simulator', but linking in dylib (/opt/homebrew/Cellar/libtiff/4.6.0/lib/libtiff.6.dylib) built for 'macOS'
I wish Brew would build universal libraries, but it doesn’t, and they have no interest in doing so. What are my options?
If I build libtiff from sources, it’s still a bit of a pain to build against a different SDK. libtiff has its own Makefile I’d rather not try to edit.
Can I make an xcframework out of it? Can I statically link it into my Swit wrapper library? Do I need to hack together a C build target in my Package and copy the source files over to it?
During updating my Ipad (2024 pro 11 inch) with beta IOS 18, it stopped working, only a black screen. A hard reset (with volume controls and top button) does not work..
Reporter 3.1.6 has been reporting the following error since 7/18/2024:
"Report is unexpectedly not available. Try again later"
I'm new to Xcode and have built a simple widget that runs on my macOS. The simulator opens whenever I run the project, and I can see my widget. However, when I close the simulator, it crashes, and I get the error message "WidgetKit Simulator quit unexpectedly".
I run Xcode 16 beta 3
Any ideas?
I'm running a MacOS15 beta 3 VM on a MacOS15 beta 3 Host (M2 Pro Mac Mini) using the Apple Virtualization Framework (via https://github.com/s-u/macosvm).
For building my app inside the VM I need Rosetta 2, since flutter still uses some Intel binaries.
But when I want to install Rosetta 2 I'm always getting the message, that installing Rosetta 2 is not allowed on this system.
Digging in the log files I found a message from the installer, that the system is not supported.
Searching online I just find a method for using Rosetta 2 inside Linux VM's using the Virtualization Framework.
Am I missing something or is it not possible to use Rosetta 2 with MacOS guests?
I want to use sftp functionality in my SwiftUI app and I have decided to try and do it using plain libssh2 (ie. without an initial wrapper or anything). libssh2 is written in C.
What are the steps I need to take in order to start calling the libssh2 C functions in my SwiftUI app?
I am using an iPhone 15 Pro as my iOS simulator, and the IDE that I am using is Android Studio. This issue is happening on a 2019 MacBook Pro 16 inch, running the latest version of Xcode, and running macOS Sonoma 14.5. I've never had this issue on other, older/newer Macs with Android Studio. Everytime I interact with the simulator, it shows green bars and distorts the view quite a bit (See screenshots below). I tried all that I could think of, including, but not limited to: Restarting simulator, restarting MacBook, restarting Android Studio, using different iOS simulators (same problem), and so forth. I have not found any such occurrence to anyone else while looking online for answers. One interesting thing that I noticed is that for Xcode projects, the simulator runs perfectly, but when I use Android Studio, the simulator doesn't work properly at all. Any solutions to this? All input is greatly appreciated.
P.S.: I have tested the app on an actual iOS device, and it works perfectly.
Here are some screenshots. This show what happens when you scroll or interact with the app: (Each screenshot is a different interaction)
Hello,
My app often crashes when I use simulators. I would like some help with reading the crash report that is generated. Especially with the part below Thread 0 Crashed. Based on other posts I understand that the 0x8BADF00D in the crash report is a WatchDog crash that basically says that WatchDog terminated the app because the main thread was blocked for a significant time. Many processes can block the main thread so it's hard to find out what it is in our specific case. Can someone help me reading through the crash report?
Short_crash_report.txt
Background information
The application is Xamarin Native and I use Rider as an IDE. When I use Visual Studio, the simulators run just fine. No crash occurs while using my app on a device.
The crash happens on multiple simulators with different OS versions. I already deleted XCode cache, erased content and settings of several simulators and deleted iOS DeviceSupport files.
Hi,
I am writing in to check if there is a way to detect Frida. As we have a Mobile App Penetration Test (MAPT), and the tester uses Frida as the tool for the penetration test.
We have implemented these codes to detect Frida and Objection:
static bool isInjected0(){
NSArray *suspiciousLibraries = [NSArray arrayWithObjects:@"FridaGadget", @"frida", @"cynject", @"libcycript", nil];
int count = _dyld_image_count();//Get the number of loaded images
if (count> 0) {
for (int i = 0; i <count; i++) {
//Traverse all image_names. Determine whether there are DynamicLibraries
const char * dyld = _dyld_get_image_name(i);
if (strstr(dyld, "DynamicLibraries")) {
return YES;
}
for (NSString *suspiciousLibrary in suspiciousLibraries) {
if ([[NSString stringWithUTF8String: dyld] rangeOfString:suspiciousLibrary].location != NSNotFound) {
return YES;
}
}
}
}
return NO;
}
We also added these codes to detect the default ports than Frida is using
@interface FridaDetector : NSObject
+ (BOOL)detectFridaPort;
+ (BOOL)isPortOpen:(in_port_t)port;
@end
@implementation FridaDetector
+ (BOOL)detectFridaPort {
in_port_t port = 27042;
return [self isPortOpen:port];
}
+ (BOOL)isPortOpen:(in_port_t)port {
int socketFileDescriptor = socket(AF_INET, SOCK_STREAM, 0);
if (socketFileDescriptor == -1) {
NSLog(@"Failed to create socket");
return NO;
}
struct sockaddr_in addr;
memset(&addr, 0, sizeof(addr));
addr.sin_len = sizeof(addr);
addr.sin_family = AF_INET;
addr.sin_port = htons(port); // Ensuring the port is in network byte order
addr.sin_addr.s_addr = inet_addr("127.0.0.1");
struct sockaddr bind_addr;
memcpy(&bind_addr, &addr, sizeof(addr));
BOOL result = NO;
if (bind(socketFileDescriptor, (struct sockaddr*)&bind_addr, sizeof(addr)) == -1) {
NSLog(@"Failed to bind socket, port might be open");
result = YES;
} else if (listen(socketFileDescriptor, SOMAXCONN) == -1) {
NSLog(@"Failed to listen on socket, port might be open");
result = YES;
}
close(socketFileDescriptor);
return result;
}
@end
We are able to detect Frida on a normal device, but I believe the tester did some workaround to prevent us from detecting the Frida present on their device.
Is there a better way to detect Frida and Objection?
Hi Guys,
I want to support my client for enable the developer mode, But they not accept to connect with any other devices(Mac Xcode) to enable developer mode.
They are nearly 10 people to enable developer mode. But I think without mac we can't enable developer mode in some of devices. So I need a clarification with IOS versions. That's only we are excepting to list out which IOS versions don't have developer mode option default. Please list out that IOS versions
Like below:
default developer mode available IOS 17.4.1
default developer mode not available IOS 17.5.1
From the Documentation of .timeLimit(_:):
Test timeouts do not support high-precision, arbitrarily short durations due to variability in testing environments. The time limit must be at least one minute, and can only be expressed in increments of one minute.
Unit Tests are usually considered too long when they take more than 0.1 seconds. So a minimal time limit of on minute is completely useless for unit tests.
Is there a similar trait in Swift Testing to handle millisecond time limits?
Hi,
I am developing an iOS application using React Native on the Expo platform with EAS. I have followed all of the Expo documentation for setting up my development environment, but in order to create a development build to test my app on my iPhone 12 mini, it says that I need to enable Developer Mode on my device.
The issue I'm running into is that when I go to Settings > Privacy & Security, here is no Developer Mode option as expected. I ensured that my device is registered in the Apple Developer portal, and I tried restarting my device multiple times to no avail. I also tried searching the developer forums for a solution, but the only solution I saw was to hook my device up to XCode which isn't an option since I'm developing my app on Windows using EAS.
Note that I'm running iOS 17.5.1 on my iPhone 12 mini.
Please let me know if there's anything I can do or anything I'm missing to enable Developer Mode on my device.
I want to automate tests for my iOS app and start writing UITests.
Sometimes system alerts appear, and my tests have to simulate button tapping.
In iOS and iPadOS these alerts are available via the system Springboard application:
let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")
let cancelButton = springboard.alerts.buttons["Cancel"].firstMatch
if cancelButton.exists {
cancelButton.tap() // <-- cancel button taps, and test continue working
}
But when I launch my test in the Vision Pro simulator, the springboard is not available:
let springboard = XCUIApplication(bundleIdentifier: "com.apple.springboard")
print(springboard.exists) // <-- "false" will be printed, springboard does not exist
It means that I can't automate button tapping in system alerts.
So, my question is:
How can I access system alerts in VisionOS and tap buttons by UITests?
Hello everyone,
I am trying to create a macro that depends on an external package to abstract some of the packages logic. The point is that the dependency does not support macOS which results in a build failure when trying to build the macro.
Since macOS 10.15 is required for creating macros, any thing can be done to get it to work?
Here is a sample to what I'm trying to do
import PackageDescription
import CompilerPluginSupport
let package = Package(
name: "Stringify",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
.tvOS(.v13),
.watchOS(.v6),
.macCatalyst(.v13)
],
products: [
.library(
name: "Stringify",
targets: ["Stringify"]
),
.executable(
name: "StringifyClient",
targets: ["StringifyClient"]
),
],
dependencies: [
.package(url: "https://github.com/apple/swift-syntax.git", from: "509.0.0"),
.package(url: "https://github.com/MyDependency", from: "1.0.0"),
],
targets: [
.target(
name: "Stringify",
dependencies: ["StringifyMacros"]
),
.executableTarget(
name: "StringifyClient",
dependencies: ["Stringify"]
),
.macro(
name: "StringifyMacros",
dependencies: [
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
.product(name: "MyDependency", package: "MyDependency"),
],
swiftSettings: [
.define("IOS_ONLY")
]
),
],
swiftLanguageVersions: [.v5]
)
Some of the errors like ".framework contains disallowed nested bundles" we find out at later stage when uploading builds to TestFlight.
It will be great if we can have similar script that apple uses or some custom script to verify it during the build time.
So before I reinvent the wheel is there any script I can use at build time to detect this issue?
im having trouble installing truffle. ive tried root/Administrator but then i get this. if anyone has any guidance that would greatly be appreciated.
this is what im getting.
% npm install -g truffle
npm error code EACCES
npm error syscall mkdir
npm error path /usr/local/lib/node_modules/truffle
npm error errno -13
npm error Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/truffle'
npm error at async mkdir (node:internal/fs/promises:858:10)
npm error at async /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:624:20
npm error at async Promise.allSettled (index 0)
npm error at async [reifyPackages] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:325:11)
npm error at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:142:5)
npm error at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:150:5)
npm error at async module.exports (/usr/local/lib/node_modules/npm/lib/cli/entry.js:74:5) {
npm error errno: -13,
npm error code: 'EACCES',
npm error syscall: 'mkdir',
npm error path: '/usr/local/lib/node_modules/truffle'
npm error }
npm error
npm error The operation was rejected by your operating system.
npm error It is likely you do not have the permissions to access this file as the current user
npm error
npm error If you believe this might be a permissions issue, please double-check the
npm error permissions of the file and its containing directories, or try running
npm error the command again as root/Administrator.
npm error A complete log of this run can be found in: /Users/prestonlofton/.npm/_logs/2024-07-10T00_46_51_500Z-debug-0.log
prestonlofton@Prestons-Air ~ % sudo rm -rf /Library/Developer/CommandLineTools
Password:
Sorry, try again.
Password:
prestonlofton@Prestons-Air ~ % sudo Xcode-select --install
xcode-select: note: install requested for command line developer tools
prestonlofton@Prestons-Air ~ % npm install -g truffle 5.0.2
npm error code E404
npm error 404 Not Found - GET https://registry.npmjs.org/5.0.2 - Not found
npm error 404
npm error 404 '5.0.2@*' is not in this registry.
npm error 404
npm error 404 Note that you can also install from a
npm error 404 tarball, folder, http url, or git url.
npm error A complete log of this run can be found in: /Users/prestonlofton/.npm/_logs/2024-07-10T00_54_22_459Z-debug-0.log