Posts

Post not yet marked as solved
4 Replies
1.3k Views
I have a popular app and i'm seeing a sporadic crash that I don't understand:Fatal Exception: NSInternalInconsistencyException This method can only be called from inside of -[PHPhotoLibrary performChanges:completionHandler:] or -[PHPhotoLibrary performChangesAndWait:error:]Here is the code, it crashes on line 3 (creationRequestForAssetFromImage) below: PHPhotoLibrary.shared().performChanges({ guard let changeRequest = PHAssetChangeRequest.creationRequestForAssetFromImage(atFileURL: animatedImageFileURL), let albumChangeRequest = PHAssetCollectionChangeRequest.init(for: album), let placeholder = changeRequest.placeholderForCreatedAsset else { WLog("ActionExecuter: error, couldn't init creationRequests") completionBlock(nil) return } ...Clearly this IS in a performChanges block.Full stack of crash, from line 3 above onwards:Fatal Exception: NSInternalInconsistencyException 0 CoreFoundation 0x184da6d8c __exceptionPreprocess 1 libobjc.A.dylib 0x183f605ec objc_exception_throw 2 Photos 0x193cad220 -[PHPhotoLibrary recordInsertRequest:] 3 Photos 0x193c3cf78 -[PHChangeRequestHelper initForNewObjectWithUUID:changeRequest:] 4 Photos 0x193c6dfc4 -[PHAssetCreationRequest initForNewObjectWithUUID:] 5 Photos 0x193c699c0 +[PHAssetCreationRequest _creationRequestForAssetUsingUUID:] 6 Photos 0x193c69ce4 +[PHAssetCreationRequest creationRequestForAssetFromImageAtFileURL:]I am wondering if this is some threading issue. Is there a rule about what thread performChanges et al have to be called from?It seems to be slower devices that hit this: iOS 11 on an iPad Air 1 is the latest crash in the wild I saw of this one.Thanks for any help
Posted
by xaphod.
Last updated
.
Post marked as solved
6 Replies
6.0k Views
Let's say a user touches one of my ads and installs my app. Great, I see it in the search ads console as a conversion.But how can I tell if that user makes an in-app purchase?Is there some event my app can report up to apple to signal this?thanks
Posted
by xaphod.
Last updated
.
Post marked as solved
3 Replies
2.4k Views
Hi there,I'm getting ready to transfer my app, which requires my app to have an app-specific shared secret.The app is currently live, and using the MASTER secret.My question is:If I generate the app-specific shared secret, will the live app still be able to use the MASTER secret, ie. until I can get an update out that uses the shared secret? I realize the app itself should not contain the secret, but in this case it does :Sthankstim
Posted
by xaphod.
Last updated
.
Post not yet marked as solved
7 Replies
1.2k Views
I'm testing out the new iOS 12 AVCapturePhotoOutput.portraitEffectsMatte.When it works, it's really great!But for some reason the matte doesn't get generated if the phone is standing up in a portrait orientation (the matte is always absent no matter what lighting conditions I tried). In the same conditions, the matte IS generated if I change the orientation of the phone such that it is in landscape orientation.Is this a known limitation of portraitEffectsMatte, or am I missing something? thanks for any help-tim
Posted
by xaphod.
Last updated
.
Post marked as solved
9 Replies
2.1k Views
Hi there,I'm using the brand-new spiffy iOS 12 Network.framework and trying to submit my app. Today is after iOS 12 general release, and i'm submitting with XCode 10 general release (installed from Mac App Store).The Network.framework APIs are getting flagged as non-public APIs, so I cannot submit my app.Can someone at Apple please fix this? Below i've pasted what App Store Connect emails me when I upload a build.I also emailed this to appreview at apple dot com.Non-public API usage:The app references non-public symbols in Frameworks/libswiftNetwork.dylib: _NWCreateDispatchDataFromNSData, _NWCreateNSDataFromDispatchData, _nw_endpoint_copy_interface, _nw_endpoint_create_unix, _nw_endpoint_set_interface, _nw_interface_create_with_index, _nw_interface_create_with_name, _nwlog_get_string_for_dns_service_error
Posted
by xaphod.
Last updated
.
Post marked as solved
1 Replies
936 Views
In WWDC 2018 session 503, the new Portrait Matte feature is discussed. In the first few minutes of the session, it is mentioned that both TrueDepth and DualCamera devices are supported, and it is stipulated that "people" must be in the frame.I don't have access to a device with a DualCamera module + iOS 12 beta so I can't just try this out... my question is: on a DualCamera device (ie. iPhone 8 Plus rear camera), is it possible to receive a portrait matte that shows more than one human subject? For example, if four people are standing against a wall, will the portait matte recognize all of them?thanks.
Posted
by xaphod.
Last updated
.
Post not yet marked as solved
13 Replies
5.9k Views
Hi Apple,I recently installed XCode 10 beta 5 and tried to compile a project that uses the -ObjC flag. It requires this flag, becuse some of the frameworks (via cocoapods) add static functions via categories.I get a ton of duplicate symbol errors and cannot compile. Example:duplicate symbol l086 in: /Users/Tim/iPhone-dev/Photobooth/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSFileManager.o) /Users/Tim/iPhone-dev/Photobooth/Pods/Crashlytics/iOS/Crashlytics.framework/Crashlytics(CLSInternalReport.o)(that example is a Google framework: Fabric->Crashlytics)This is the first time i've tried XCode 10 with this project, so I cannot tell if this is new in beta 5 or not. This issue does NOT occur in XCode 9 newest version -- it compiles fine as it has for years.I have also posted this issue on StackOverflow.Full linker command is:Ld /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/appname.app/appname normal arm64 (in target: appname) cd /Users/Username/iPhone-dev/appname export IPHONEOS_DEPLOYMENT_TARGET=9.0 /Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.0.sdk -L/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/AFNetworking -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Actions -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/AppAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Bluepeer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Bolts -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/CocoaAsyncSocket -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/CocoaLumberjack -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Color-Picker-for-iOS -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/DNPWPSPrinter -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/DataCompression -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/EOSFTPServer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FBSDKCoreKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FBSDKLoginKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FastttCamera -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseCore -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseDatabase -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/FirebaseStorage -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GTMAppAuth -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GTMSessionFetcher -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Gloss -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GoldRaccoon -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/GoogleToolboxForMac -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/HHServices -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/JPSVolumeButtonHandler -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/M13BadgeView -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/ObjectiveDropboxOfficial -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/PhoneNumberKit -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/Protobuf -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/TPCircularBuffer -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/leveldb-library -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/nanopb -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/upnpx -F/Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/xaphodObjCUtils -F/Users/Username/iPhone-dev/appname/Pods/Crashlytics/iOS -F/Users/Username/iPhone-dev/appname/Pods/Fabric/iOS -F/Users/Username/iPhone-dev/appname/Pods/FirebaseABTesting/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseAnalytics/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseDynamicLinks/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseInstanceID/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/FirebaseRemoteConfig/Frameworks -F/Users/Username/iPhone-dev/appname/Pods/TwitterCore/iOS -F/Users/Username/iPhone-dev/appname/Pods/TwitterKit/iOS -F/Users/Username/iPhone-dev/appname/cascablecore-binaries/Binaries/iOS -filelist /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -miphoneos-version-min=9.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fobjc-arc -fobjc-link-runtime -L/Users/Username/Downloads/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos -Xlinker -add_ast_path -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname.swiftmodule -ObjC -lc++ -licucore -lsqlite3 -lz -framework AFNetworking -framework AVFoundation -framework Accounts -framework Actions -framework AppAuth -framework AssetsLibrary -framework Bluepeer -framework Bolts -framework CFNetwork -framework CocoaAsyncSocket -framework CocoaLumberjack -framework Color_Picker_for_iOS -framework CoreData -framework CoreGraphics -framework CoreMedia -framework CoreText -framework Crashlytics -framework DNPWPSPrinter -framework DataCompression -framework EOSFTPServer -framework FBSDKCoreKit -framework FBSDKLoginKit -framework Fabric -framework FastttCamera -framework FirebaseABTesting -framework FirebaseAnalytics -framework FirebaseAuth -framework FirebaseCore -framework FirebaseCoreDiagnostics -framework FirebaseDatabase -framework FirebaseDynamicLinks -framework FirebaseInstanceID -framework FirebaseNanoPB -framework FirebaseRemoteConfig -framework FirebaseStorage -framework Foundation -framework GTMAppAuth -framework GTMSessionFetcher -framework Gloss -framework GoldRaccoon -framework GoogleToolboxForMac -framework HHServices -framework JPSVolumeButtonHandler -framework M13BadgeView -framework MessageUI -framework MobileCoreServices -framework ObjectiveDropboxOfficial -framework PhoneNumberKit -framework Protobuf -framework QuartzCore -framework SafariServices -framework Security -framework Social -framework StoreKit -framework SystemConfiguration -framework TPCircularBuffer -framework TwitterCore -framework TwitterKit -framework UIKit -framework leveldb -framework nanopb -framework upnpx -framework xaphodObjCUtils -weak_framework WebKit -ObjC -lc++ -licucore -lsqlite3 -lz -lctemplate-ios -letpan-ios -lxml2 -lsasl2 -liconv -ltidy -lz -lc++ -lresolv -stdlib=libc++ -ObjC /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/libMailCore-ios.a -framework SafariServices -framework CascableCore -framework Security -framework CFNetwork -framework MessageUI -framework StoreKit -framework GameKit -framework StopKit -framework Pods_appname -Xlinker -dependency_info -Xlinker /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Intermediates.noindex/appname.build/Debug-iphoneos/appname.build/Objects-normal/arm64/appname_dependency_info.dat -o /Users/Username/Library/Developer/Xcode/DerivedData/appname-lastnamepjksdzfewpftlvqzuglaxplu/Build/Products/Debug-iphoneos/appname.app/appnameI read through the release notes for XCode 10 but didn't see anything applicable.I tried cleaning the build folder, restarting XCode, didn't help.Thanks for any help, i'm blocked on this.
Posted
by xaphod.
Last updated
.
Post marked as solved
1 Replies
608 Views
In the WWDC18 Platform State of the Union session, there was a cool example where a photo of a woman in front of one background was cut out, and placed onto a different background, using Vision/CoreML.I want to do exactly this. I'm fine to do this on iOS12/beta only.Does anyone have any resources on how to do this?thanks!
Posted
by xaphod.
Last updated
.
Post not yet marked as solved
5 Replies
2.4k Views
I'm interested in the new Network.framework that was announced at WWDC18. Digging through the docs a bit, in NWInterface.InterfaceType it appears there's no Bluetooth mentioned.Does that mean that this framework won't interact with Bluetooth at all (ie. for situations where devices are near each other) ?
Posted
by xaphod.
Last updated
.
Post marked as solved
5 Replies
1.1k Views
I already have an app on the app store, with IAPs like this:- Free to download - it watermarks images as a limitation- IAP "basic": one-time non-consumable feature-unlock package- IAP "event": one-time non-consumable feature-unlock package, contains all of "basic" + more- IAP "pro" subscription: auto-renewing yearly subscription that unlocks ALL functionalityThis setup hasn't changed in about a year...Because all of the features are free to try before purchase, most users buy the package that's best for them, and that's that.BUT, sometimes over time a user's business grows, and they want to upgrade from "event" to "pro".At the moment they have to pay for "pro" as if they'd never paid for "event" which *****.Is there some way to have the price of "pro" (yearly sub) depend on whether they have "event" or not?For example am I allowed to have another "pro" sub which is the same as the existing one, but is only offered in the app to those who have purchased "event", and has a lower price? (By "am I allowed" I mean will I get rejected or not)Or is there a better way?thanks
Posted
by xaphod.
Last updated
.
Post not yet marked as solved
1 Replies
1.8k Views
I just started playing with Search Ads Basic, so I don't know much about it yet.I want to see on App Analytics (itunesconnect), how many people who download the app via a Search Ad (basic) actually purchase the app (via in-app purchase). The normal way I do this is to attribute a campaign to the link, then monitor the performance of that campaign in App Analytics. But there's no way to do this with Search Ad Basic I guess. How can I see how much IAP revenue is coming from Search Ad Basic?The reason I want to know this: it will determine my Search Ad Basic budget!In App Analytics (itunesconnect) -> Sources -> Campaigns, is there a way to get Search Ads Basicsto show up as a campaign?Or some other way on the Sources page?
Posted
by xaphod.
Last updated
.
Post not yet marked as solved
3 Replies
869 Views
In WWDC 2017 Session 505, "What's new in Photos", there is a reference to a Sample App several times. I'm trying to find it, does anyone have a link?Specifically, I'm after AnimatedImageView and AnimatedImage classes, and the project they are contained within.I also cannot find the "Photo Library Filler" sample app mentioned in 505 either.Thanks for any help!
Posted
by xaphod.
Last updated
.