Post

Replies

Boosts

Views

Activity

Xcode/iOS Simulator running with x86_64 instead of arm64 architecture
Hi, Can anyone please share some information on why my Mac with apple silicon still using iOS simulator with x86_64 architecture instead of arm64 architecture. The problem arises when I use FFMPEG frameworks, these frameworks are working on arm64, so they should work on iOS Simulator, but I get error saying these frameworks are for arm64 and Xcode/iOS simulator needs x86_64 based frameworks. why Xcode still expects frameworks with x86_64 architecture. Thanks,
0
0
92
2d
Help needed to understand the issues from the app
Hi, There are total three errors from the app running on the device. First one is right after the app starts running on the device: Could not create a sandbox extension for '/var/containers/Bundle/Application/D4CBF093-EFB1-43C5-996D-7D5CB04BF643/appadmob.app' Below second issue comes when I dismiss the Interstitial Ad First responder issue detected: non-key window attempting reload - allowing due to manual keyboard (first responder window is <UIWindow: 0x10d11c700; frame = (0 0; 414 896); hidden = YES; autoresize = W+H; gestureRecognizers = <NSArray: 0x301749300>; backgroundColor = <UIDynamicSystemColor: 0x3002b3080; name = _windowBackgroundColor>; layer = <UIWindowLayer: 0x3019b7960>>, key window is <QUIWindow: 0x10880db00; baseClass = UIWindow; frame = (0 0; 414 896); gestureRecognizers = <NSArray: 0x3017276e0>; layer = <UIWindowLayer: 0x3019852f0>>) And the third issue below follows right after the second one: Error acquiring assertion: <Error Domain=RBSServiceErrorDomain Code=1 "((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))" UserInfo={NSLocalizedFailureReason=((target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.rendering AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.networking AND target is not running or doesn't have entitlement com.apple.developer.web-browser-engine.webcontent))}> 0x118024480 - ProcessAssertion::acquireSync Failed to acquire RBS assertion 'WebProcess NearSuspended Assertion' for process with PID=19180, error: (null) Failed to terminate process: Error Domain=com.apple.extensionKit.errorDomain Code=18 "(null)" UserInfo={NSUnderlyingError=0x3019254a0 {Error Domain=RBSRequestErrorDomain Code=3 "No such process found" UserInfo={NSLocalizedFailureReason=No such process found}}} Also when I dismissed the interstitial ad, the screen looks greyed out, but when I touch the screen, the screen comes to normal. Could you please suggest any solution for the problems. Thanks,
2
0
452
Dec ’24
Third party frameworks are not found
Hi, Can someone please suggest a answer for my problem. I am developing an iOS app using Qt and I am trying to implement AdMob. I installed using below Pod file. # Uncomment the next line to define a global platform for your project # platform :ios, '9.0' target 'apptesting' do # Comment the next line if you don't want to use dynamic frameworks use_frameworks! # Pods for apptesting pod 'FirebaseAnalytics', '10.27.0' pod 'Google-Mobile-Ads-SDK', '11.5.0' end and these are installed correctly and testing.xcworkspace is created successfully. but when I run the build for xcworkspace in Xcode, it is showing below errors 'GoogleMobileAds/GoogleMobileAds.h' file not found 'FirebaseCore/FirebaseCore.h' file not found please see CMakeLists.txt file for your reference cmake_minimum_required(VERSION 3.16) project(testing VERSION 0.1 LANGUAGES CXX) set(CMAKE_AUTOMOC ON) set(CMAKE_CXX_STANDARD_REQUIRED ON) find_package(Qt6 6.5 REQUIRED COMPONENTS Quick Core Widgets) qt_standard_project_setup(REQUIRES 6.5) qt_add_executable(apptesting main.cpp AdMobManager.m ) # qt_add_qml_module(apptesting # URI testing # VERSION 1.0 # QML_FILES # Main.qml # ) # Qt for iOS sets MACOSX_BUNDLE_GUI_IDENTIFIER automatically since Qt 6.1. # If you are developing for iOS or macOS you should consider setting an # explicit, fixed bundle identifier manually though. set_target_properties(apptesting PROPERTIES # MACOSX_BUNDLE_GUI_IDENTIFIER com.example.apptesting MACOSX_BUNDLE_BUNDLE_VERSION ${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE TRUE WIN32_EXECUTABLE TRUE ) target_link_libraries(apptesting PUBLIC Qt6::Quick Qt6::Core Qt6::Widgets "-framework UIKit" "-framework FirebaseCore" "-framework GoogleMobileAds" ) # Enable ARC for Objective-C++ files set_source_files_properties(AdMobManager.mm PROPERTIES COMPILE_FLAGS "-fobjc-arc") #set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_MODULES YES) include(GNUInstallDirs) install(TARGETS apptesting BUNDLE DESTINATION . LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} ) qt_generate_deploy_qml_app_script( TARGET apptesting OUTPUT_SCRIPT deploy_script MACOS_BUNDLE_POST_BUILD NO_UNSUPPORTED_PLATFORM_ERROR DEPLOY_USER_QML_MODULES_ON_UNSUPPORTED_PLATFORM ) install(SCRIPT ${deploy_script}) Also please see AdMobManger.m below #import <UIKit/UIKit.h> #import <FirebaseCore/FirebaseCore.h> #import <GoogleMobileAds/GoogleMobileAds.h> // Static variables for banner ads static GADBannerView *bannerView = nil; void initializeAdMob() { // Initialize Firebase if ([FIRApp defaultApp] == nil) { [FIRApp configure]; } // Initialize Google Mobile Ads SDK [[GADMobileAds sharedInstance] startWithCompletionHandler:nil]; } void showBannerAd() { UIWindow *keyWindow = [UIApplication sharedApplication].keyWindow; UIViewController *rootViewController = keyWindow.rootViewController; if (!bannerView) { // Create the banner ad view bannerView = [[GADBannerView alloc] initWithAdSize:GADAdSizeBanner]; bannerView.adUnitID = @"ca-app-pub-3940256099942544/2934735716"; // Test Ad Unit ID bannerView.rootViewController = rootViewController; // Position the banner at the bottom of the screen CGSize screenSize = [UIScreen mainScreen].bounds.size; bannerView.frame = CGRectMake( (screenSize.width - bannerView.frame.size.width) / 2, screenSize.height - bannerView.frame.size.height, bannerView.frame.size.width, bannerView.frame.size.height ); [rootViewController.view addSubview:bannerView]; } // Load the ad GADRequest *request = [GADRequest request]; [bannerView loadRequest:request]; } void hideBannerAd() { if (bannerView) { [bannerView removeFromSuperview]; bannerView = nil; } } I also implemented below change > In project's build settings: > Add the /usr/lib/swift path to Runpath Search Paths. > Add the -ObjC linker flag to Other Linker Flags. Thanks
1
0
251
Dec ’24
Invalid Swift Support
Hi, Can someone please help me with the below issue, I validated the app before distributing from Xcode, and it passed. but I received a mail from Apple Developer Relations saying there a problem, but I don't have any clue how to solve this problem. ITMS-90429: Invalid Swift Support - The files libswiftDarwin.dylib, libswiftDispatch.dylib, libswiftCoreGraphics.dylib, libswiftCoreFoundation.dylib, libswiftUIKit.dylib, libswiftMetal.dylib, libswiftCore.dylib, libswiftFoundation.dylib, libswiftQuartzCore.dylib, libswiftos.dylib, libswiftObjectiveC.dylib, libswiftCoreImage.dylib aren’t at the expected location /Payload/connectdots.app/Frameworks. Move the file to the expected location, rebuild your app using the current public (GM) version of Xcode, and resubmit it. I dont know where these dylibs are now and how to move them. Also I am using Xcode 15.3. what does it mean current public version of Xcode Thanks in Advance, Thirupathi.
1
0
290
Jul ’24