Comments (17)
Hi @jaitruworth @Suliman-A ,
We just released v3.3.1, which fixes the issue.
Best,
Tomas, Talsec developer
from free-rasp-reactnative.
also followed steps to add code to app and add binary to app and getting same issue
from free-rasp-reactnative.
Hi @jaitruworth,
Unfortunately I wasn't able to reproduce the error. Please, share the whole stack trace of the error if possible.
For now, I would suggest reinstalling pods, maybe that could solve the problem:
In ios folder, run these commands:
pod deintegrate
pod cache clean --all
pod install
Let us know if this helps.
Best,
Tomas, Talsec developer
from free-rasp-reactnative.
- added library to npm (npm install)
- cd ios
- pod deintegrate
- pod cache clean --all
- pod install --verbose
- then run from Xcode and fails
there are 15 similar "Multiple commands produce" errors 2 of them are shown below
Multiple commands produce '/Users/../Library/Developer/Xcode/DerivedData/appname-ewsgfwgfwsjwrbcdprlujuzitvvy/Build/Products/Debug-iphonesimulator/freerasp-react-native/freerasp_react_native.framework/Headers/CryptoBridgingHeader.h'
Multiple commands produce '/Users/../Library/Developer/Xcode/DerivedData/..-ewsgfwgfwsjwrbcdprlujuzitvvy/Build/Products/Debug-iphonesimulator/freerasp-react-native/freerasp_react_native.framework/Headers/CurlWrapper.h'
Multiple commands produce '/Users/../Library/Developer/Xcode/DerivedData/..-ewsgfwgfwsjwrbcdprlujuzitvvy/Build/Products/Debug-iphonesimulator/freerasp-react-native/freerasp_react_native.framework/Headers/TalsecRuntime-Swift.h'
from free-rasp-reactnative.
These
- ios-arm64
- ios-arm64_×86_64-simulator
two folder both contains
TalsecRuntime-Swift.h
CurlWrapper.h
CryptoBridgingHeader.h
& 12 more files that triggers multiple commands produce error
can you please help me with this?
from free-rasp-reactnative.
Hi @jaitruworth,
we'll do our best to fix the issue.
These folders are not duplicates and are not reason of the error. They include binary code for multiple architectures, allowing it to run on different devices and simulators.
We still didn't reproduce the issue. Can you please answer following questions?
- Is this a new installation of freeRASP, or are you upgrading from a previous version?
- What version of XCode are you using?
- Do you run app with Rosetta?
- In your app's target in XCode, go to General -> Frameworks, Libraries and Embedded Content. Do you see TalsecRuntime.xcframework listed there?
- Do you see TalsecRuntime.xcframework in Build Phases -> Link Binary With Libraries?
Also, please look inside "Build Phases" tab for any build phase (e.g., "Copy Headers," "Copy Files," "Compile Sources") that may be generating conflicting files and causing the conflict. If you find multiple build phases generating these files, delete one of them.
from free-rasp-reactnative.
hii @tompsota Any update on this ??
from free-rasp-reactnative.
Hello @jaitruworth,
Could you please respond to the questions in my previous message? You can find them in this link: #26 (comment).
We performed a clean install of freeRASP and did not encounter any errors, therefore your answers will be valuable in identifying the issue.
from free-rasp-reactnative.
- New installation
- Xcode 14.1
- Rosetta? - no
- Frameworks, Libraries and Embedded Content. - can't see framework here
- Link Binary With Libraries? - can't see framework here
- Copy Headers," "Copy Files," "Compile Sources" - no duplicate found
from free-rasp-reactnative.
added library to Frameworks, Libraries and Embedded Content and Link Binary With Libraries? and got same issue
Found library in Embed Frameworks in Build phases
also removed from there and checked, still got same issue
from free-rasp-reactnative.
Hi @jaitruworth,
we just released new version, let's see if the problem still persists. Try to remove everything related to freeRASP first and try to do a clean install:
npm uninstall freerasp-react-native
(or delete node_modules and remove freerasp from package.json)cd ios
pod deintegrate
pod cache clean --all
cd ..
npm install freerasp-react-native
cd ios
pod install
Ensure that freerasp 3.3.0 is installed. Try to run the app and let us know if this helped.
from free-rasp-reactnative.
Still same issue
Version 3.3.0 is installed
Followed all steps you mentioned
from free-rasp-reactnative.
from free-rasp-reactnative.
Hi and sorry for late reply,
thanks @gansu18 for pointing this out!
@jaitruworth, can you check if you have use_frameworks!
in your Podfile and eventually remove it?
freeRASP is shipped as a static library, therefore dynamic linking with use_frameworks! will lead to duplicate class error.
from free-rasp-reactnative.
Hi and sorry for late reply, thanks @gansu18 for pointing this out!
@jaitruworth, can you check if you have
use_frameworks!
in your Podfile and eventually remove it? freeRASP is shipped as a static library, therefore dynamic linking with use_frameworks! will lead to duplicate class error.
I only have this line use_frameworks! :linkage => :static
in my Podfile and i don't think it's a good idea to remove it.
from free-rasp-reactnative.
yes removing use_frameworks
breaks other library that we are using
from free-rasp-reactnative.
Hi @jaitruworth, @Suliman-A, @gansu18,
Indeed, if some other package require use_frameworks!, then you cannot remove it. However, I finally reproduced the problem and found a way to fix it.
Fix:
- Go to node_modules/freerasp-react-native/freerasp-react-native.podspec
- After a line that starts with 's.source_files' (line 17), add this code that removes the duplicate headers:
s.exclude_files = 'ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/*.h', 'ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/*.h'
- Run
pod install
.
After that, the project should build successfully.
Hope this helps.
We'll have to do some more testing until we are able to release this globally, to ensure compatibility with projects that do not use the use_frameworks! directive. However, in your case, everything will work as expected.
from free-rasp-reactnative.
Related Issues (20)
- Downgrading API level HOT 2
- Getting "unofficialStore" check failed after publish on play store internal testing. HOT 3
- Increase in Build Size HOT 3
- Could not resolve all artifacts for configuration ':freerasp-react-native:classpath'. HOT 1
- Android Force close on AAB version after uploaded to Play Store HOT 2
- Not Working on Android after upgrading react native HOT 4
- Unofficial store event triggered for Firebase App Distribution HOT 5
- freerasp-react-native could not determine the react-native version used HOT 1
- [Info] How frequently are the checks performed ? HOT 2
- FreeRASP causes Runtime.getRuntime().exec("ping -c 1 www.google.com") to throw an error HOT 1
- app crash on first start on FreeraspReactNative.onInvalidCallback() HOT 8
- Package Size is concerning. HOT 2
- Adding support for Expo SDK. HOT 2
- [Feature Request] Developer Mode Detection HOT 5
- Issue on IOS event detection HOT 9
- Could not find com.aheaditec.talsec.security:TalsecSecurity-Community-ReactNative:9.0.0. HOT 1
- Simulator Detection is not working with MEmu Android Emulator HOT 3
- Execution failed for task ':freerasp-react-native:minifyReleaseWithR8'. HOT 10
- For detection of developer mode.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from free-rasp-reactnative.