Facing issue in manual integration of GSCXScanner

91 views
Skip to first unread message

DIVYA MITTAL

unread,
Jul 30, 2023, 4:21:13 AM7/30/23
to ios-accessibility
Hi Team, 

I try to add GSCXScanner library manually. I followed all the steps mentioned in Readme.md file. I am getting this error

No such file or directory: '/Users/divya/Library/Developer/Xcode/DerivedData/-aitviyrjzrgtlfehwhgfndrsisqf/Build/Products/Debug-iphonesimulator/GSCXScanner.framework/GSCXScanner'

Can you please guide me. I need to add tool to point accessibility. If you have any video for manual integration that would be helpful.

Thanks & Regards
Divya

Cooper Knaak

unread,
Aug 1, 2023, 4:10:49 PM8/1/23
to ios-accessibility
Hi,

Unfortunately, the README is out of date. GSCXScanner currently only supports CocoaPods integrations. We hope to clarify this in our public documentation soon.

You might be able to work around this by cloning or downloading GTXiLib 3.1.0. GTXiLib only supports CocoaPods integrations since version 4, and Scanner depends on GTXiLib. If you're downloading the most recent version of GTXiLib, it won't build, and you'll get the error that the GSCXScanner.framework file can't be found. If you use an old version of GTXiLib that can be manually integrated, you might get it to build.

Sincerely,

Cooper Knaak

DIVYA MITTAL

unread,
Apr 8, 2024, 4:15:38 AM4/8/24
to Cooper Knaak, ios-accessibility
Hi Cooper,

I am trying installation via cocoapods. But I am getting below error now

#include "gtx.pb.h" not found.


Can you share any video I just want to have look how this tool works.


Regards

Divya


--
You received this message because you are subscribed to the Google Groups "ios-accessibility" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ios-accessibil...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ios-accessibility/8ae4fe5a-889b-4b9e-aad0-35aaa4070572n%40googlegroups.com.
Message has been deleted

DIVYA MITTAL

unread,
Apr 8, 2024, 6:21:22 AM4/8/24
to Cooper Knaak, ios-accessibility
Now I have tried using below pod file

# Uncomment the next line to define a global platform for your project

# platform :ios, '9.0'


target 'SwiftUIBlueprint' do

  # Comment the next line if you don't want to use dynamic frameworks

  use_modular_headers!

  # Pods for SwiftUIBlueprint

  pod 'GSCXScanner'

end


I am getting this error. Can you please help me with the integration. Can you please install framework in the sample project attached.


On Mon, Apr 8, 2024 at 1:55 PM DIVYA MITTAL <divyami...@gmail.com> wrote:
Also cooper I can see library are not updated after 2020, any specific reason ?
Screenshot 2024-04-08 at 3.48.54 PM.png
sampleProject.zip

Cooper Knaak

unread,
Apr 9, 2024, 12:13:17 PM4/9/24
to ios-accessibility
Hi,

I just tried reproducing locally. I think this may be a bug in our dependencies. I need to double check, but GTXiLib (which is a dependency of GSCXScanner) might need to use a different version of abseil or be updated to the current version of abseil. A couple files are missing the `str_cat.h` include that used to be unnecessary. I will take a look, and if I Scanner and/or GTX need to be updated, I will report back.

Completely unrelated, but in case you run into it: when trying to reproduce, I got an inscrutable error 

error: Sandbox: bash(60141) deny(1) file-write-create /Users/cooperknaak/Desktop/cocoatest/Pods/resources-to-copy-cocoatest.txt (in target 'cocoatest' from project 'cocoatest')

The solution was to open the project settings, search "sandbox", and change "User Script Sandboxing" to "No". CocoaPods workspaces set user scripts to properly bundle the dependencies, so sandboxing needs to be disabled.

Sincerely,

Cooper Knaak

DIVYA MITTAL

unread,
Apr 9, 2024, 11:09:31 PM4/9/24
to Cooper Knaak, ios-accessibility
Thanks Cooper for reverting back, I'll check.


Cooper Knaak

unread,
Apr 11, 2024, 12:02:30 PM4/11/24
to ios-accessibility
Hi!

I confirmed that it was an issue with a GTX dependency. GSCXScanner depends on GTX, which depends on abseil. Abseil version 1.20240116.0 changed something, I believe with how it packages or imports its header files, that caused str_cat.h to no longer be transitively imported. Adding an explicit import fixed it. I have updated GTX to version 5.1.3. Running pod update should pull the new version, without needing to change your Podfile. Please let me know if that works or if you have any further questions.

Reply all
Reply to author
Forward
0 new messages