License troubleshooting
Common license issues and how to resolve them.
Issue 1: SDK initialization fails
[FSLibrary initialize:key:] returns a code other than FSErrSuccess.
Troubleshooting
- Verify SN and key:
snis the string afterSN=inrdk_sn.txt;keyis the string afterSign=inrdk_key.txt. - Check for extra whitespace or newlines when copying values.
- Confirm the license is not expired: trial licenses are time-limited; ensure the current date is within the valid period.
Issue 2: Device time does not match license dates
If the device date is earlier than the license StartDate, initialization may fail.
Solution
Set the system clock correctly or use automatic date and time.
Issue 3: Initialization fails after CocoaPods integration
Troubleshooting
- Open the project with
.xcworkspace, not.xcodeproj. - Confirm
FoxitRDK.frameworkis linked (visible under Target → Frameworks). - Run
pod installand reopen the workspace.