andrew.n
Member
@Max Hello again, I downloaded your demo project and when I opened it, it looks like this:
This is not looking like a clean installation of the framework in the demo project... looks like the project has already the references of both frameworks: FPWCSApi2 and FPWCSApi2Swift and also two references of WebRTC frameworks in the same folder which is strange...
I copied the frameworks inside the demo project and everything is ok, the project is not crashing at startup...
Also at this step (5) from the docs, it looks like you copy both frameworks to the demo folder, BUT at step 6 I don't see the FPWCSApi2Swift.framework listed... why did this happen?
When I do the same steps for my app is not working...
1) I removed WebRTC from Cocoapods
2) I downloaded both frameworks and I included them in my project and I had to manually include in "Frameworks, Libraries and Embedded Content" the WebRTC.framework that was inside of FPWCSApi2.framework/Frameworks/WebRTC.framework. - If I don't do this manually integration I have build issues because of missing WebRTC.framework - Also, if I want to include the reference of WebRTC.framework from the FPWCSApi2Swift.framework, the initial reference is replaced...
3) I cleaned the DerivedData and the project itself but during the runtime, it is crashing
4) I tried to do a clean build install to a newly created simulator still not working
5) I tried to build the project on a real device and still not working...
On a clean simulator crash:
On real device crash:
This is not looking like a clean installation of the framework in the demo project... looks like the project has already the references of both frameworks: FPWCSApi2 and FPWCSApi2Swift and also two references of WebRTC frameworks in the same folder which is strange...
I copied the frameworks inside the demo project and everything is ok, the project is not crashing at startup...
Also at this step (5) from the docs, it looks like you copy both frameworks to the demo folder, BUT at step 6 I don't see the FPWCSApi2Swift.framework listed... why did this happen?
When I do the same steps for my app is not working...
1) I removed WebRTC from Cocoapods
2) I downloaded both frameworks and I included them in my project and I had to manually include in "Frameworks, Libraries and Embedded Content" the WebRTC.framework that was inside of FPWCSApi2.framework/Frameworks/WebRTC.framework. - If I don't do this manually integration I have build issues because of missing WebRTC.framework - Also, if I want to include the reference of WebRTC.framework from the FPWCSApi2Swift.framework, the initial reference is replaced...
3) I cleaned the DerivedData and the project itself but during the runtime, it is crashing
4) I tried to do a clean build install to a newly created simulator still not working
5) I tried to build the project on a real device and still not working...
On a clean simulator crash:
Code:
dyld: Library not loaded: @rpath/FPWCSApi2Swift.framework/FPWCSApi2Swift
Referenced from: /Users/username/Library/Developer/CoreSimulator/Devices/5A56652A-1A60-465F-AB50-13EA0A1B0621/data/Containers/Bundle/Application/92560408-3CB4-4800-A315-F38761690538/AppName.app/AppName
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot
DYLD_LIBRARY_PATH=/Users/username/Library/Developer/Xcode/DerivedData/ProjectName-bxwkikkxazzdiqegsfonrunjorom/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libMainThreadChecker.dylib:/Applications/Xcode.app/Contents
(lldb)
Code:
dyld: Library not loaded: @rpath/FPWCSApi2Swift.framework/FPWCSApi2Swift
Referenced from: /private/var/containers/Bundle/Application/00E2AD30-A664-491F-A68E-91A9B94D75D3/AppName.app/AppName
Reason: image not found
dyld: launch, loading dependent libraries
DYLD_LIBRARY_PATH=/usr/lib/system/introspection
DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib
(lldb)