Post

Replies

Boosts

Views

Activity

macOS Exported UTI that Xcode recognizes it like a java file
Hello, I try to add an exported UTI for a file with extension "lxb" so that Xcode recognizes it like a java file <key>UTExportedTypeDeclarations</key> &#9;&#9;<array> &#9;&#9;&#9;&#9;<dict> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeIdentifier</key> &#9;&#9;&#9;&#9;&#9;&#9;<string>com.sun.java-source</string> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeReferenceURL</key> &#9;&#9;&#9;&#9;&#9;&#9;<string>http://www.java.com/</string> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeDescription</key> &#9;&#9;&#9;&#9;&#9;&#9;<string>Java source</string> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeIconFile</key> &#9;&#9;&#9;&#9;&#9;&#9;<string>com.sun.java-source.icns</string> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeConformsTo</key> &#9;&#9;&#9;&#9;&#9;&#9;<array> &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;<string>public.source-code</string> &#9;&#9;&#9;&#9;&#9;&#9;</array> &#9;&#9;&#9;&#9;&#9;&#9;<key>UTTypeTagSpecification</key> &#9;&#9;&#9;&#9;&#9;&#9;<dict> &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;<key>public.filename-extension</key> &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;<array> &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;<string>lxb</string> &#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;</array> &#9;&#9;&#9;&#9;&#9;&#9;</dict> &#9;&#9;&#9;&#9;</dict> &#9;&#9;</array> but the file isn't highlighting in Xcode Thanks
3
0
662
Nov ’20
problems with the CocoaPods installation
Hello, I try to use a github project SDWebImage/SDWebImageAVIFCoder - https://github.com/SDWebImage/SDWebImageAVIFCoder I open the terminal and I use "pod install" in the example directory I have this message : Analyzing dependencies Adding spec repo `trunk` with CDN `https://cdn.cocoapods.org/` Downloading dependencies Installing SDWebImage (5.10.4) Installing SDWebImageAVIFCoder (0.8.0) Installing libaom (1.0.2) Installing libavif (0.8.1) Installing libdav1d (0.8.0) Generating Pods project Integrating client project Pod installation complete! There are 3 dependencies from the Podfile and 5 total pods installed. [!] The `SDWebImageAVIFCoder_Tests [Debug]` target overrides the `HEADER_SEARCH_PATHS` build setting defined in `Pods/Target Support Files/Pods-SDWebImageAVIFCoder_Tests/Pods-SDWebImageAVIFCoder_Tests.debug.xcconfig'. This can lead to problems with the CocoaPods installation Use the `$(inherited)` flag, or Remove the build settings from the target. and when I try to build the macOS example in Xcode I have this message error : Directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/SDWebImageAVIFCoder-avwnzlmckkghozaxqdmbdvoctahr/Build/Products/Debug/SDWebImage-macOS' Directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/SDWebImageAVIFCoder-avwnzlmckkghozaxqdmbdvoctahr/Build/Products/Debug/SDWebImageAVIFCoder-macOS' Directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/SDWebImageAVIFCoder-avwnzlmckkghozaxqdmbdvoctahr/Build/Products/Debug/libaom-macOS' Directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/SDWebImageAVIFCoder-avwnzlmckkghozaxqdmbdvoctahr/Build/Products/Debug/libavif-macOS' Directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/SDWebImageAVIFCoder-avwnzlmckkghozaxqdmbdvoctahr/Build/Products/Debug/libdav1d-macOS' Library not found for -lSDWebImage-macOS Thanks
0
0
1.4k
Feb ’21
iOS duplicate symbol _OBJC_METACLASS_$ in static library
Hello, I created a static library for iOS (*.a), I added using Swift Package Manager (SPM) in the project library "SDWebImage/SDWebImageAVIFCoder" - https://github.com/SDWebImage/SDWebImageAVIFCoder but when I try to use my static library I have this message error : duplicate symbol OBJC_METACLASS$_SDGraphicsImageRenderer… in the static library Mach_O files of "SDWebImageAVIFCoder" are duplicated Thanks for your help
0
0
529
Feb ’21
PMSessionValidatePrintSettings never change on macOS
Hello, PMSessionValidatePrintSettings return always "false" on macOS PMPrintSettings settings; PMPrintSession session; Boolean result; PMCreateSession(&session); PMSessionSetCurrentPMPrinter(session, printer); PMCreatePrintSettings(&settings); PMSessionDefaultPrintSettings(session, settings); PMSetDuplex(settings, kPMDuplexTumble); PMSessionValidatePrintSettings(session, settings, &result); PMRelease(session); PMRelease(settings); if (result) NSLog (@"%@", @"changed"); else NSLog (@"%@", @"not changed"); Thanks
0
0
256
Sep ’24
iOS security-scoped bookmark
Hello, using UIDocumentPickerViewController and startAccessingSecurityScopedResource(), I can access to a directory on iOS using Bookmark data, but when I save a Bookmark data, security-scoped bookmark not survive quitting the app and re-launching it. I used the Apple example here but my app doesn't appear in Settings &gt; Privacy &gt; Files and Folders ? Security-scoped bookmark is-it available on iOS ? Thanks.
2
0
181
Oct ’24