Hazard-style cover reading The Report Model Nothing Calls, with Filter, Report, Block and Contact each marked with a red X
Short answer

Three public social app repos, from 2017 to 2023, are missing what Guideline 1.2 asks for: a content filter, a way to report content, blocking, published contact details, plus the terms App Review has asked for in at least one rejection. Fix the data model first (one copy of each conversation per user, email out of the public profile, blocks and reports enforced in database rules), then add report, block, filter and contact in that order. Run the searches near the end to see whether your moderation code exists and is actually called, and in zsh, the macOS default shell, quote the *.swift pattern.

sosialWave has a file called ReportModel.swift. It defines a clean Report struct with a reporter, a target, a list of reasons and a date. Its user model has a blocked array, and its image extension has a flag icon ready to go. Search the rest of the project and nothing creates a Report, nothing reads blocked, and no screen shows the flag.

That gap is a good description of how social apps fail App Review. The model looks finished, the feed looks finished, and the part Apple checks for is a struct nobody calls.

This post checks three of my own public repos against Guideline 1.2, the App Store rule for user-generated content. They span 2017 to 2023: a Twitter-style feed, a Firebase chat app and a SwiftUI social app. I'm using them because they show the same missing pieces at three different stages, and because the code is public, so you can check every claim. If you asked Cursor or Claude Code for "a social app with a feed and chat," the output probably has the same shape.

A note on method. Everything below comes from reading the source in each repo. I did not build these projects, and I found no sign in them that any was submitted to the App Store, so "would fail" is my reading of the guideline against the code, and no Apple reviewer has said it. The Firebase rules further down were tested in a simulator, and the Firebase send function was not compiled. The context menu snippet was type-checked later on a Mac with Xcode 26.2, and the project searches were run there against a sample repo. I'll repeat that where it matters.

What Guideline 1.2 asks for

Apple's text covers apps that let users "create, generate, upload, share, or otherwise contribute content," and it names social media, user-generated content platforms and AI content creation apps. Those apps must include four things:

  • A method for filtering objectionable material from being posted to the app
  • A mechanism to report offensive content and timely responses to concerns
  • The ability to block abusive users from the service
  • Published contact information so users can easily reach you

A rejection message can be stricter than that list. One developer posted a 2025 rejection on Apple's forums that also required users to agree to terms (a EULA) stating there is no tolerance for objectionable content, and said the developer must act on reports within 24 hours by removing the content and ejecting the user. The guideline itself only says "timely," so treat 24 hours as how App Review has worded it to at least one developer. I'd build for it anyway, because it costs nothing extra once a report queue exists.

The scorecard

Here is each repo against the four requirements, plus the terms that rejection message asks for.

  • tweet2 (2017): no filter, no report, no block, no contact, no terms. It also has no way to post, so it is the weakest fit for 1.2, and its bigger problem is elsewhere.
  • pesanProject (2018): no filter, no report, no block, no contact, no terms. Users create real accounts, upload profile photos and send messages, so 1.2 applies in full.
  • sosialWave (2023): no filter, no contact, no terms. Report and block exist only as data structures, with no UI and no caller.

tweet2: a feed pointing at a server that no longer exists

tweet2 is ten Swift files from 2017, set to Swift 3.0 with an iOS 10.3 target and two pods, LBTAComponents and TRON. The project reads its whole feed from one call:

let tron = TRON(baseURL: "https://api.letsbuildthatapp.com")
let request: APIRequest<HomeDatasource, JSONError> = tron.request("/twitter/home")

That host belongs to a tutorial course, and when I tried it in a browser on 6 November 2026 the name no longer resolved. An app that depends on someone else's demo server is one shutdown away from a blank screen, and this one would stay blank without a word, because the failure path only prints:

}) { (err) in
    print("Failed Our Json...", err)
}

Guideline 2.1(a) tells you to "turn on your back-end service" before review. If an AI tool scaffolded your networking layer, search it for any base URL you don't own or pay for. Guideline 5.2.2 adds a related duty: if you display content from a third-party service, you need to be permitted to under its terms, and you may be asked to show it.

The parser has a sharper edge. A valid response with no users key crashes the app:

let usersJsonArray = json["users"].array
self.users = usersJsonArray!.map({return User(json: $0)})

A few smaller things show how a demo differs from a product. Reply, retweet, love and message buttons are all created and laid out, and none has an addTarget, so they do nothing. Every tweet shows the same bundled image, because User.profileImage is set to an empty UIImage() and the JSON's image URL is never read. Cell height is computed for users only, so every tweet gets a fixed 120 points whatever its length. And the Swift 3.0 setting needs updating before the project will open cleanly, since the compiler dropped that language mode around the Swift 5 release.

Dead buttons matter to App Review more than the rest. A reviewer taps things. A heart that does nothing reads as an unfinished app under Guideline 2.1. Guideline 2.1 Rejection: Why Your AI-Built App Crashed in App Review covers what else a reviewer taps and how a crash there reads.

pesanProject: real users, real messages, and a query that reads everyone's

pesanProject ("pesan" means message in Indonesian) is the one that would matter most if it shipped. It uses Firebase Auth, Realtime Database and Storage, lets people register with an email and photo, and lets them message each other. The inner project is named AplikasiInsta and the README reads, in full, "ok this a test," which is fair.

Here is how it loads your conversation list:

let ref = FIRDatabase.database().reference().child("messages")
ref.observe(.childAdded, with: { (snapshot) in

That subscribes to the entire messages node with no filter on the signed-in user. Each message goes into a dictionary keyed by toId, and the list shows the newest one per recipient. So the screen titled as your messages is built from every message anyone has sent to anyone.

The repo has no database rules file, so I can't tell you what the server would allow. Both possible answers are bad. With open rules, every signed-in user receives everyone's private messages. With rules scoped per user, this read fails completely, because Firebase rules are not filters: the docs say that even if some children are readable, "reading at the parent location will fail completely." The client code can't work correctly under any rules. One flat messages node is easy to write and hard to secure later, so check for it if an AI tool wrote your chat.

Firebase's docs also settle a common worry. API keys restricted to Firebase services only identify your project, and they are fine in checked-in config. What protects your data is Security Rules. If you have a Firebase app that came out of an AI tool, spend your worry on the rules. Backdoored Claude Code Extension in Cursor: Check Your Mac, Then Rotate These iOS Keys covers the keys that do need protecting.

The same project has a neighbouring problem. The new-message screen reads the whole users node, which hands every client every user's name and email. For a chat app, that turns your signup list into something any user can download.

Then two plain bugs. Users are written to users, and the conversation cell reads from user:

let ref = FIRDatabase.database().reference().child("user").child(toId)

One missing letter means no name or photo ever appears in that list, and nothing reports an error, because an empty snapshot simply skips the if let. The chat screen has no data source at all either, so you can send a message and never see the thread. Sending also doesn't check for empty text or clear the field, so pressing return twice sends the same message twice.

On the review side this app has every trigger and none of the safeguards. Photos go straight to Storage and appear to other users with no check. There is no way to report or block anyone, no contact details, no terms at signup, and account creation with only a "Keluar" (log out) button, which also breaks the in-app account deletion rule in Guideline 5.1.1(v).

sosialWave: the convincing demo

sosialWave is the newest and the most dangerous to mistake for a product. It is proper SwiftUI from late 2023 with view models, protocol-based services, a floating tab bar and Kingfisher for images. Open the services file and all four "API" classes read local files:

class HomePostsAPIService: IHomePostsAPIService {
    func getHomePosts(success: @escaping JSONCompletionHandler, failed: @escaping ErrorMessageCompletionHandler) {
        let successMockResponse = JSONParser.shared.fetchJSON(jsonFileName: "homePosts")
        success(successMockResponse)
    }
}

This structure is good. The protocols mean a real backend can replace the mock without touching the view models. AI-built apps can stall at this same point, because the screens look complete while nothing is connected. The like button plays a heart animation and changes no data. The comment sheet displays comments from the JSON and has no input field. Tapping a post header pushes a blank screen, marked in the source with #warning("here link to full image"). ContentView creates a HomeViewModel and fetches into it, then HomeView creates its own, so the first fetch feeds nothing.

Three review problems follow from this.

The first is Guideline 2.1(a), which says "placeholder text, empty websites, and other temporary content should be scrubbed before submission." Ten fake posts with sample names and example.com avatars are exactly that.

The second is the description. The README calls the app a way to "monitor and interact with your social media in one convenient place" with "Support for Various Social Media Platforms." The code connects to no platform. In a README that's harmless. Paste it into App Store Connect and you have the misleading marketing that Guideline 2.3.1(a) warns about, so don't let an AI assistant write your listing from a README without checking each claim against the app.

The third is rights. The mock JSON hot-links images from stock photo CDNs and blogs, and one fake user's avatar is a photo of a real celebrity. Guideline 5.2 says your app should only include content you created or have a license to use. Mock data stays in the bundle if nobody looks, and hot-linked images also vanish whenever those sites change a path.

One more detail for anyone with a feed: since September 2026, Apple requires answers to new social media questions in the age rating questionnaire when you submit. Apple defines the capability as the ability to "redistribute, amplify, or interact with user-generated content through a social feed or similar discovery method," and a feed with likes and comments fits that wording. Answer those questions and the Messaging and Chat and User-Generated Content questions honestly, because the app the reviewer opens has to match them.

Fixing the data model first

Moderation features sit on top of the data model, so fix that before adding buttons. Replace the flat messages node with one copy per participant, move email out of the public profile, and add blocks and reports. These Realtime Database rules do that:

{
  "rules": {
    "users": {
      "$uid": {
        ".read": "auth != null",
        ".write": "auth != null && auth.uid === $uid"
      }
    },
    "private": {
      "$uid": {
        ".read": "auth != null && auth.uid === $uid",
        ".write": "auth != null && auth.uid === $uid"
      }
    },
    "conversations": {
      "$owner": {
        ".read": "auth != null && auth.uid === $owner",
        "$peer": {
          "$messageId": {
            ".write": "auth != null && !data.exists() && (auth.uid === $owner || auth.uid === $peer) && !root.child('blocks').child($owner).child($peer).exists() && !root.child('blocks').child($peer).child($owner).exists()",
            ".validate": "newData.hasChildren(['text', 'fromId', 'timestamp']) && newData.child('fromId').val() === auth.uid && newData.child('text').isString() && newData.child('text').val().length > 0 && newData.child('text').val().length <= 2000"
          }
        }
      }
    },
    "blocks": {
      "$uid": {
        ".read": "auth != null && auth.uid === $uid",
        "$blockedId": {
          ".write": "auth != null && auth.uid === $uid"
        }
      }
    },
    "reports": {
      "$reportId": {
        ".write": "auth != null && !data.exists()",
        ".validate": "newData.child('reporterId').val() === auth.uid && newData.hasChildren(['targetId', 'reason', 'timestamp'])"
      }
    }
  }
}

I ran these through 22 cases in targaryen, an open-source Firebase rules simulator, and all 22 behaved as intended. A user can read their own conversations and nobody else's. Reading the top of conversations or the whole users list is refused. Sending as someone else, sending empty text and editing an existing message are refused. If either person has blocked the other, the message is refused in both directions, which is the part I like most, because the block is enforced on the server even if a client is out of date. Reports can be written by any signed-in user and read by nobody in the app. A simulator is not a live project, so run your own cases in the Firebase emulator before trusting these.

Sending now writes both copies in one update. This uses the current Firebase SDK names and is not compiled:

func send(_ text: String, to peerId: String) {
    guard let me = Auth.auth().currentUser?.uid else { return }
    let trimmed = text.trimmingCharacters(in: .whitespacesAndNewlines)
    guard !trimmed.isEmpty else { return }

    let root = Database.database().reference()
    guard let key = root.child("conversations").childByAutoId().key else { return }

    let value: [String: Any] = [
        "text": trimmed,
        "fromId": me,
        "timestamp": ServerValue.timestamp()
    ]
    root.updateChildValues([
        "conversations/\(me)/\(peerId)/\(key)": value,
        "conversations/\(peerId)/\(me)/\(key)": value
    ]) { error, _ in
        if let error { print("Send failed:", error) } // show this to the user
    }
}

Your conversation list now observes conversations/<your uid>, which the rules allow. A deleted-for-me feature gets simple too, since each person owns a copy, although you'd need to relax the !data.exists() check for that path.

The four features, in the order I'd build them

1. Report

Put the action on every piece of user content: posts, comments, messages and profiles. In sosialWave the struct already exists, so the job is the sheet and the write. A context menu on a post keeps it one long press away. This Button initializer type-checks for sosialWave's iOS 16.1 target with Xcode 26.2, whose SDK marks it available from iOS 14, so no Label workaround is needed:

.contextMenu {
    Button("Report post", systemImage: "flag") { reportTarget = post }
    Button("Block \(post.createdBy ?? "user")", systemImage: "hand.raised") {
        blockUser(post.authorId)
    }
}

That snippet was type-checked on macOS 26.0.1 with Xcode 26.2 (Swift 6.2.3) and the iOS Simulator SDK, inside a small view with a Post struct, a reportTarget binding and a blockUser closure. It passed with no errors or warnings for iOS 17.0, 16.1 and 15.0 targets. The SDK declares Button(_:systemImage:action:) in an extension marked iOS 14 and compiles it into your app, so the shorter form is fine on sosialWave's target. The snippet was not built inside sosialWave itself.

In that repo, post.authorId doesn't exist yet, since posts only carry a display name. That's worth noticing, because you can't block a name. Every post and comment needs a stable author ID before report or block can work.

Decide who reads the queue before you ship. A daily email from a Cloud Function to a real inbox is enough at launch, and it gives you the audit trail to answer Apple's question about how fast you respond.

2. Block

Blocking has two sides. The server refuses new messages, as in the rules above. The client hides the blocked person's existing posts and comments from the feed, right away, without a refresh. Check that second half yourself: block someone and look at the feed.

3. Filter

Apple asks for filtering "from being posted," so it has to run before content appears to others. For text, start with a word list checked on the server when a post is created, since a client-side check is easy to skip. For images, upload to a private path, scan them, and only then publish. Google's Cloud Vision SafeSearch is one option, returning likelihood scores for categories such as adult and violent content. In pesanProject that means the profile photo waits in a quarantine folder until the check passes, in place of going straight to profile_images.

The guideline doesn't ask for a perfect filter, and the report flow is there for what it misses.

4. Contact and terms

Add a contact row in settings with a real email address that someone reads, and put the same address on your support URL. At signup, require agreement to terms that say plainly there is no tolerance for objectionable content or abusive users. Record the acceptance so you can show it.

Check your own project in ten minutes

Run these from your repo root. They are quick searches, so read what they return. When I ran the first one on pesanProject it matched withCompletionBlock, which has nothing to do with blocking users.

# Does any moderation code exist at all?
grep -rIlEi 'report|block(ed|User)?\b|flag|moderat|eula|terms' --include='*.swift' .

# Is that code actually called?
grep -rInE '\bReport\(|\.blocked\b|blockUser|reportContent' --include='*.swift' .

# Any base URLs you don't own?
grep -rInE 'https?://' --include='*.swift' . | grep -v -E 'apple.com|your-domain'

# Mock data still in the bundle?
find . -name '*.json' -not -path './Pods/*' -not -name 'Contents.json'

# Reads of a whole collection?
grep -rIn 'child("messages")\|child("users")' --include='*.swift' .

On sosialWave, the first search finds four files and the second finds only the decode line in UserModel.swift. That difference is the whole finding: the words are there and nothing uses them.

What the searches printed on a Mac

The five searches were run on macOS 26.0.1 against a small sample repo written for this post, not against the three repos, which were not cloned for this check. The sample has a chat file with a flat messages read, a users read and a withCompletionBlock call; a feed file with a demo base URL, an Apple documentation URL, a TODO comment that mentions a report button and the words "block quotes" in a string; a ReportModel.swift with a Report struct and a blocked array that nothing uses; a mock posts.json; an asset catalog Contents.json; and a JSON file under Pods.

Run in zsh, the default shell in Terminal on a Mac, the commands as first published failed. zsh reads the unquoted *.swift in --include=*.swift as a file pattern, finds nothing in the folder that matches, and refuses to run the line:

zsh:1: no matches found: --include=*.swift

Four of the five lines failed this way. Only the find line ran, because its pattern was already in quotes. In bash, and in zsh once the pattern was quoted, all five ran, so the block above now reads --include='*.swift'. If you use bash, the quotes change nothing.

With the quotes, the results on the sample were:

  • Search 1 listed all three Swift files. The chat file matched only because of withCompletionBlock, and the feed file only because of the TODO comment and "block quotes", the same kind of false hit as on pesanProject.
  • Search 2 printed nothing, which is the right answer for code where nothing creates a Report or reads blocked. After one line that creates a Report was added, it printed that line.
  • Search 3 printed the demo base URL and left out the developer.apple.com link.
  • Search 4 printed App/Mock/posts.json and left out Contents.json and the file under Pods.
  • Search 5 printed both the child("messages") and the child("users") read.

Then two common cases were added. A Firestore read of a whole collection, Firestore.firestore().collection("messages").getDocuments(), was missed by search 5, which only knows the Realtime Database's child(...). A base URL in an .xcconfig file and another in Info.plist were missed by search 3, which only reads Swift files. The xcconfig case has a second trap: // starts a comment in xcconfig files, so the URL is usually written as https:/$()/, which a search for https?:// can never match. These two extra searches found all three:

# Whole-collection reads, Realtime Database and Firestore
grep -rInE '(child|collection)\("(messages|users|posts)"\)' --include='*.swift' .

# Base URLs kept outside Swift files
grep -rInE 'https?:' --include='*.plist' --include='*.xcconfig' --include='*.json' . | grep -v -E 'apple.com|your-domain|Pods/'

A hit from either one is a line to read, not a verdict. A Firestore query with a whereField filter on the signed-in user is fine, and a URL in a config file may be a host you own.

The demo server, ten days later

On 16 November 2026 the tweet2 host was checked again from the same Mac. api.letsbuildthatapp.com still has a DNS record, a CNAME pointing to a name under herokudns.com, but that name has no address record, so curl stops with exit code 6, "Could not resolve host." The DNS entry outlived the server behind it. For an app built on it, the result is the same silent blank feed described above. If you ever retire a backend of your own, remove its DNS record as well, so nothing keeps pointing at a host that no longer answers.

The rules file in the data model section also parses as valid JSON with Python's json module. That checks only the syntax. The 22 targaryen cases are what tested the behavior, and they were not run again for this update.

The reviewer's walk

Then do the reviewer's walk by hand, on a real device with a second account. Sign up and read what you agreed to. Post something with a filtered word. Report a post from the other account and confirm it reaches a human. Block that account and check the feed changes immediately. Delete the account from inside the app. Then write that path into your App Review notes, with a demo login that already has content to report, because a reviewer who can't find the report button may conclude it doesn't exist.

If you use Claude Code on an iOS project, I sell Claude Code + Xcode: The Production iOS Workflow Kit, a set of rules, commands and agents for SwiftUI and UIKit work, including a privacy and security rule and a release readiness agent. It doesn't include a moderation system, and its own page says it can't guarantee App Store approval. It suits you if you want Claude Code to check its work and report what it ran.

Sources