Post not yet marked as solved
Running Xcode-select -v will display version 2384, however, no trace of it exists in the /Library/Developer folder, and it only shows up in usr/bin as an executable file. I've tried numerous ways of installing, updating and removing with no success. I'm running Big Sur 11.6. Anyone run into a problem like this with Xcode?
cc -static file_name.c command is not working, it's showing an error
ld: library not found for -lcrt0.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
how to solve this error?
Post not yet marked as solved
Hi,
I'm trying to build and upload an iOS app from the command line but when using altool to upload the IPA file, i get the following error:
Error: Could not determine the package’s bundle ID. The package is missing an Info.plist or the CFBundlePackageType is not ‘APPL’ or ‘FMWK’. Unable to validate your application. (-21017)
I'm building the app with the following steps:
xcodebuild archive -scheme MyApp -workspace ./ios/MyApp.xcworkspace -configuration Release -archivePath "~/Downloads/test.xcarchive"
xcodebuild -exportArchive -archivePath "~/Downloads/test.xcarchive" -exportOptionsPlist ./ios/MyApp/exportOptions.plist -exportPath "~/Downloads/test.ipa"
altool --upload-app -f "~/Downloads/test.ipa" --type ios -u "REDACTED" -p "REDACTED"
My Info.plist actually has a CFBundlePackageType key with the APPL value.
I noticed there is no Info.plist file in the output folder (~/Downloads/test.ipa/), but i'm not even sure it should have one.
My exportOption.plist file loks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>method</key>
<string>app-store</string>
<key>teamID</key>
<string>REDACTED</string>
</dict>
</plist>
I'm using XCode 13.4.
Thank you for your help
Post not yet marked as solved
Hello,
Using a MacBook Pro running Monterey 12.3.1, I uninstalled Xcode and the "Developer" folder. According to Terminal app there is no trace of Xcode or Command Tools, but I still keep on getting the warning to install a couple of huge updates: 13.3 and 13.4, which I do not need.
After some research I opened a case in Apple Communities where I got some interesting suggestions that did not work, and finally addressed Apple Support 101699894156, out of one of those suggestions.
I am not an IT guy, just a regular user, but I do use the Mac for my work.
Please tell me what can I do to cancel those updates since they are no use to me right now and really heavy on the drive.
Post not yet marked as solved
Is there a simple way to convert the 'new-style' JSON crash report into a human readable format through Terminal? Similar to how viewing it directly in Xcode or Console reverts it to the old-format.
I want to update my automation scripts to utilize the new CrashSymbolicator.py utility, but I'm having trouble easily reading its output.
Post not yet marked as solved
How can I add the generated numbers from the terminal to contacts as name and number.
for example type in the Terminal % echo {00..99}
then the terminal makes 00 01 02 03 etc.
00. I would like to save these numbers as a contact for first name and number.
german : Wie kann ich die generierten zahlen vom Terminal zu Kontakten als Namen und Nummer hinzufügen
bsp gib im Terminal ein % echo {00..99}
dann macht der Terminal 00 01 02 03 usw.
00 diese Nummern möchte ich als Kontakt speichern für Vorname und Nummer
Post not yet marked as solved
Hi,
I get these updates offers. But I don't have installed Command Line tools.
sudo xcode-select -p
Password:
/Applications/Xcode.app/Contents/Developer
Why are there 3 different versions? And how can I remove it without set them to the ignore list?
ls -la /Library/Developer/
total 0
drwxr-xr-x 3 root admin 96 10 Maj 11:16 .
drwxr-xr-x 65 root wheel 2080 20 Apr 17:08 ..
drwxr-xr-x 8 root admin 256 31 Mar 03:59 PrivateFrameworks
Post not yet marked as solved
I'm trying to install a package for bioinformatics analysis on macOS Monterey v 12.3.1 on my MacBook pro (M1)
When I use the make command (as required for the installation process) I get this output:
make -C /Users/msozzoni/Documents/Terminale/bin/angsd/htslib
make[1]: Entering directory '/Users/msozzoni/Documents/Terminale/bin/angsd/htslib'
make[1]: Leaving directory '/Users/msozzoni/Documents/Terminale/bin/angsd/htslib'
x86_64-apple-darwin13.4.0-clang++ -O3 -o angsd *.o /Users/msozzoni/Documents/Terminale/bin/angsd/htslib/libhts.a -lz -lm -lbz2 -llzma -lpthread -lcurl /Users/msozzoni/Documents/Terminale/bin/htslib/
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/liblzma.tbd' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Makefile:114: angsd] Error 1
To resolve this I've tried using the command:
xcode-select --install
as suggested here (https://developer.apple.com/forums/thread/672939).
but says:
xcode-select: error: command line tools are already installed, use "Software Update" to install updates
I then tried making a full upgrade using:
brew upgrade llvm
brew upgrade gcc
sudo rm -rf /Library/Developer/CommandLineTools
xcode-select --install
but the problem is not solved and if I try to run make again I get the same error as before.
Do you have some idea? Thank you in advance
Post not yet marked as solved
Hi,
so, I really like https://github.com/akinomyoga/ble.sh for my brew-installed bash.
But with the system-default awk (version 20200816) I get the error message
towc: multibyte conversion failure on: '��'
Only if I use GNU awk from brew, it works.
akinomyoga, the developer of ble.sh really wants to support the system default awk, but it seems it isn't part of the open-source program any more. https://opensource.apple.com/source/awk/ only goes up to version 27.40.1, where the version on macOS 12.3.1 reports 32.
Does anybody know more about the switch of awk and what features it has?
The GitHub issue is https://github.com/akinomyoga/ble.sh/issues/190.
BR
Silvio
Post not yet marked as solved
When I go to my terminal and type in "python" or "python --version" I get back "command not found: python"
I have the newest version downloaded but not even version 2 isn't showing up. What do I do?
I even just factory reset my mac. I'm running the M1 mini
Post not yet marked as solved
I need to create a script for checking a security posture of a
machine using OPSWAT MetaAccess. They have a built-in check, however,
according to them, they aren't able to check since macOS 10.13+. This
seems to coordinate with a change other people have discussed on other
forums where the following commands don't work anymore. OPSWAT does
support checks via custom shell script and so I'm figuring out how to
write that now.
The scripts that don't work anymore:
defaults read com.apple.screensaver idleTime
defaults -currentHost read com.apple.screensaver idleTime
defaults -currentHost read com.apple.screensaver askForPassword
defaults read com.apple.screensaver askForPassword
Post not yet marked as solved
I have a certificate + private key in the Apple Keychain on a macOS 12 machine. The access control for the private key has been modified to add my program binary to the "Always allow access by these applications:" list. My program uses this certificate to do mTLS authentication using OpenSSL. Also inside the program I disable the Keychain UI temporarily while accessing items stored in there to disable any prompts. All this was working fine. I could even update this binary from a .pkg file installer to the same path and the access would still be inherited.
But that is no longer the case. If I upgrade the binary now at the same path, the Keychain does not allow the program to access that private key. I have to go into the Keychain access application and manually remove the earlier entry and re-add the binary at the same path again into the list.
Not sure if this is a macOS issue or by binary has changed somehow. There have been no major code base changes to the program.
If this is something by design, is there a command line to add certain binaries to the Access List for the private key? So that I can automate this process somehow and not have to re-add the binary at the same path again every time.
Hi
I'm finding it really difficult to integrate this tool in my Xcode project. The Fyber SKAdNetwork ID auto-updater is a tool for publishers to integrate into their build system and manage SKAdnetwork IDs into their Info.plist with each build job automatically. This will allow them to keep the Info.plist file up to date, even if some partners make changes to their IDs.
Here's the link to the instructions:
https://developer.fyber.com/hc/en-us/articles/360015298038-SKAdNetwork-ID-Auto-Updater
I have installed the tool using Terminal but the rest is very confusing to me as I am not very familiar with some of the instructions/commands I'm being asked to do.
Any help would be greatly appreciated - thank you so much in advance :)
Ermes
Post not yet marked as solved
I'm trying to use automatic provisoning in our build pipeline using the following command:
xcodebuild -project myproj.xcodeproj -scheme myscheme -configuration release -scmProvider system -allowProvisioningUpdates -verbose clean archive -authenticationKeyPath mykeyPath authenticationKeyID myKeyID -authenticationKeyIssuerID myIssuerID
The clean succeeds, but the archive fails with the following error message :
▸ note: Build preparation complete
▸ note: Building targets in dependency order
▸ error: Could not connect to the server. (in target 'myscheme' from project 'myproj')
▸ error: No profiles for 'appid' were found: Xcode couldn't find any iOS App Development provisioning profiles matching 'appid'. (in target 'myscheme' from project 'myproj')
▸ ** ARCHIVE FAILED **
On some runs of the pipeline, instead of "could not connect to server" I get the following issue:
▸ error: The request timed out. (in target 'myScheme' from project 'myproj')
The pipeline runs on a dedicated build server which can only connect to the internet using a proxy. The proxy is configured in the system settings and I've already tried the workaround from this thread:
https://developer.apple.com/forums/thread/666368
Post not yet marked as solved
Hi. I am able to get the USB port # of attached Android devices in command line via "adb devices -l". And in fact with adb, I can use the "shell getprops" parameters to find all sorts of things. But that's all for Android devices.
I'm trying to find the same thing for attached iPhone & iPads via command line. I've played around with idb but even "idb describe" with all the metadata it provides does not include USB port #. I've looked into xcrun xctrace but don't see anything there either. Might anyone have other suggestions or other tools I should look into? Thanks!
Post not yet marked as solved
I run some scripts to set up certain things when building a computer. Recently (ala Big Sur+) the specific commands to set things using systemsetup throw an error. It worked perfectly in the past, so something has changed, in fact I seem to recall it worked in earlier versions of BigSur.
This is the error:
2022-04-09 07:07:33.282 systemsetup[2738:43831] ### Error:2 File:/System/Volumes/Data/SWE/macOS/BuildRoots/9dc5c14c79/Library/Caches/com.apple.xbs/Sources/Admin/Admin-876.2/InternetServices.m Line:379
Here is a code example:
#!/usr/bin/perl
$TZ = "America/New_York";
$CMD -settimezone $TZ;
$curTZ = $CMD -gettimezone;
print "\n\n$curTZ\n\n";
Notes:
1 even though it throws the error, it still sets the timezone correctly.
2 the error is the same no matter what "-set" verb is used; timezone, timeserver, computersleep, etc.
3 It does the same on both Intel and M1 machines.
Any suggestions?
Post not yet marked as solved
How can I entirely remove Xcode Command Line Tools from my Mac?
It is reinstalled with every update.
Thanks
Max
Post not yet marked as solved
Since the last update of xCode in my macbook m1 2021 and my mac mini m1 2021 i am facing with am build issue using the xcode command line tools:
Xcode build done. 55,3s
168Failed to build iOS app
169Error output from Xcode build:
170↳
171 objc[22207]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x1fb051eb0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1080984f8). One of the two will be used. Which one is undefined.
172 objc[22207]: Class AppleTypeCRetimerFirmwareAggregateRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fb051f00) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108098548). One of the two will be used. Which one is undefined.
173 objc[22207]: Class AppleTypeCRetimerFirmwareRequestCreator is implemented in both /usr/lib/libauthinstall.dylib (0x1fb051f50) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108098598). One of the two will be used. Which one is undefined.
174 objc[22207]: Class ATCRTRestoreInfoFTABFile is implemented in both /usr/lib/libauthinstall.dylib (0x1fb051fa0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x1080985e8). One of the two will be used. Which one is undefined.
175 objc[22207]: Class AppleTypeCRetimerFirmwareCopier is implemented in both /usr/lib/libauthinstall.dylib (0x1fb051ff0) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108098638). One of the two will be used. Which one is undefined.
176 objc[22207]: Class ATCRTRestoreInfoFTABSubfile is implemented in both /usr/lib/libauthinstall.dylib (0x1fb052040) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x108098688). One of the two will be used. Which one is undefined.
177 2022-04-14 22:34:54.390 xcodebuild[22207:90732] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
178 2022-04-14 22:34:54.390 xcodebuild[22207:90732] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
179 ** BUILD FAILED **
I saw a lot of workarround but they are not working in my case.
Any suggestion or update about the fix of this issue ?
Post not yet marked as solved
After installing xcode13.3, a prompt keeps popping up asking me to install the command line developer tools, but I have already installed it, and this prompt keeps popping up, what should I do?
Post not yet marked as solved
Hello,
I want use PyMC3 on my computer. I need g++ for that, which is installed via command line tools. I have command line tools installed together with xcode, but when I run my code, g++ headers are not found and I'm prompted to install g++ with command line tools. I redo the installation and when I re-run my code, I get the same message. Also when I do g++ --version I get the following message:
ebuild: error: SDK "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk@" cannot be located.
g++: error: Failed to determine realpath of '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk@' (errno=No such file or directory)
g++: error: sh -c '/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk@ -find g++ 2> /dev/null' failed with exit code 16384: (null) (errno=No such file or directory)
xcode-select: Failed to locate 'g++', requesting installation of command line developer tools.
Another thing is that, the version of SKD in my directory is,
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk@.
But g++ is looking for MacOSX11.3.sdk@.
How can I fix this problem?
I currently have OS monterey 12.0.1.