-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
How frequently does the bug occur?
Always
Description
The link to RLMObject.html leads to a page with a 403 ERROR.
This should be the working link
https://www.mongodb.com/docs/realm-sdks/objc/latest/Classes/RLMObject.html
Stacktrace & log output
Exception NSException * "Property 'home' is declared as 'Home', which is not a supported RLMObject property type. All properties must be primitives, NSString, NSDate, NSData, NSNumber, RLMArray, RLMSet, RLMDictionary, RLMLinkingObjects, RLMDecimal128, RLMObjectId, or subclasses of RLMObject. See https://www.mongodb.com/docs/realm-legacy/docs/objc/latest/api/Classes/RLMObject.html for more information." 0x0000600000c6f5d0
Can you reproduce the bug?
Always
Reproduction Steps
In an Objective-C project use this models
@interface Dog : RLMObject
@property NSString *name;
@property NSInteger age;
@end
@implementation Dog
// No need for implementation
@end
@interface Home : NSObject // NSObject instead of RLMObject
@property NSString *road;
@property NSString *city;
@end
@implementation Home
// No need for implementation
@end
RLM_COLLECTION_TYPE(Dog)
@interface Person : RLMObject
@property NSString *name;
@property RLMArray<Dog> *dogs;
@property Home *home;
@end
and write this code inside AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
RLMRealmConfiguration *config = [RLMRealmConfiguration defaultConfiguration];
config.inMemoryIdentifier = @"MyInMemoryRealm";
RLMRealm *realm = [RLMRealm realmWithConfiguration:config error:nil];
}
Version
10.54.5
What Atlas Services are you using?
Local Database only
Are you using encryption?
No
Platform OS and version(s)
Xcode 16.4
Build environment
ProductName: macOS
ProductVersion: 15.6.1
BuildVersion: 24G90
/Applications/Xcode.app/Contents/Developer
Xcode 16.4
Build version 16F6
/opt/homebrew/bin/pod
1.16.2
(not in use here)
/bin/bash
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24)
carthage not found
(not in use here)
/usr/bin/git
git version 2.39.5 (Apple Git-154)